| OLD | NEW |
| 1 Overview | 1 Overview |
| 2 -------- | 2 -------- |
| 3 | 3 |
| 4 Scripts and files in this directory describe how to build CIPD packages from | 4 Scripts and files in this directory describe how to build CIPD packages from |
| 5 the source code in infra.git repo. | 5 the source code in infra.git repo. |
| 6 | 6 |
| 7 There are two flavors of packages: | 7 There are two flavors of packages: |
| 8 | 8 |
| 9 * Packages with executables compiled from Go code. | 9 * Packages with executables compiled from Go code. |
| 10 * Single giant package with all python code and archived virtual environment | 10 * Single giant package with all python code and archived virtual environment |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 # specified the package will be build on all CI builders. When build.py script | 25 # specified the package will be build on all CI builders. When build.py script |
| 26 # is invoked manually (without --builder flag), this property is ignored. | 26 # is invoked manually (without --builder flag), this property is ignored. |
| 27 builders: | 27 builders: |
| 28 - infra-continuous-precise-64 | 28 - infra-continuous-precise-64 |
| 29 - ... | 29 - ... |
| 30 # If true, it means the package is friendly to different GOOS and GOARCH. If not | 30 # If true, it means the package is friendly to different GOOS and GOARCH. If not |
| 31 # set or false, this package will be skipped when doing cross-compilation. | 31 # set or false, this package will be skipped when doing cross-compilation. |
| 32 supports_cross_compilation: true | 32 supports_cross_compilation: true |
| 33 # Optional list of go packages to 'go install' before zipping this package. | 33 # Optional list of go packages to 'go install' before zipping this package. |
| 34 go_packages: | 34 go_packages: |
| 35 - github.com/luci/luci-go/client/cmd/cipd | 35 - github.com/luci/luci-go/cipd/client/cmd/cipd |
| 36 - ... | 36 - ... |
| 37 # Path to the root of the package source files on the system we're building | 37 # Path to the root of the package source files on the system we're building |
| 38 # the package from. Can be absolute or relative to the path of the *.yaml | 38 # the package from. Can be absolute or relative to the path of the *.yaml |
| 39 # file itself. | 39 # file itself. |
| 40 root: ../.. | 40 root: ../.. |
| 41 | 41 |
| 42 data: | 42 data: |
| 43 # 'dir' section adds a subdirectory of 'root' to the package. In this case | 43 # 'dir' section adds a subdirectory of 'root' to the package. In this case |
| 44 # it will scan directory <yaml_path>/../../a/b/c and put files into a/b/c | 44 # it will scan directory <yaml_path>/../../a/b/c and put files into a/b/c |
| 45 # directory of the package. | 45 # directory of the package. |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 package in build output directory. When uploading packages (via `build.py | 167 package in build output directory. When uploading packages (via `build.py |
| 168 --no-rebuild --upload`), `GOOS` and `GOARCH` are used to figure out what flavor | 168 --no-rebuild --upload`), `GOOS` and `GOARCH` are used to figure out what flavor |
| 169 of built packages to pick (what `+${platform}` to search for). | 169 of built packages to pick (what `+${platform}` to search for). |
| 170 | 170 |
| 171 Cross compiling toolset doesn't include C compiler, so the binaries are built in | 171 Cross compiling toolset doesn't include C compiler, so the binaries are built in |
| 172 `CGO_ENABLED=0` mode, meaning some stdlib functions that depend on libc are not | 172 `CGO_ENABLED=0` mode, meaning some stdlib functions that depend on libc are not |
| 173 working or working differently compared to natively built executables. | 173 working or working differently compared to natively built executables. |
| 174 | 174 |
| 175 In particular `os/user` doesn't work at all, and DNS resolution in `net` uses | 175 In particular `os/user` doesn't work at all, and DNS resolution in `net` uses |
| 176 different implementation. | 176 different implementation. |
| OLD | NEW |