| OLD | NEW |
| 1 # Chromium Infra Go Area | 1 # Chromium Infra Go Area |
| 2 | 2 |
| 3 [TOC] | 3 [TOC] |
| 4 | 4 |
| 5 | 5 |
| 6 ## Get the code | 6 ## Get the code |
| 7 | 7 |
| 8 The steps for getting the code are: | 8 The steps for getting the code are: |
| 9 | 9 |
| 10 1. [Install depot_tools](https://www.chromium.org/developers/how-tos/install-de
pot-tools) | 10 1. [Install depot_tools](https://www.chromium.org/developers/how-tos/install-de
pot-tools) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 eval `./env.py` | 89 eval `./env.py` |
| 90 go install github.com/luci/luci-go/tools/cmd/... | 90 go install github.com/luci/luci-go/tools/cmd/... |
| 91 ./bin/cproto --help # infra/go/bin is where executables are installed | 91 ./bin/cproto --help # infra/go/bin is where executables are installed |
| 92 cproto --help # infra/go/bin is also in $PATH | 92 cproto --help # infra/go/bin is also in $PATH |
| 93 ``` | 93 ``` |
| 94 | 94 |
| 95 Alternatively `go/env.py` can be used as a wrapping command that sets up an | 95 Alternatively `go/env.py` can be used as a wrapping command that sets up an |
| 96 environment and invokes some other process. It is particularly useful on | 96 environment and invokes some other process. It is particularly useful on |
| 97 Windows. | 97 Windows. |
| 98 | 98 |
| 99 If the `INFRA_PROMPT_TAG` environment variable is exported while running |
| 100 `go/env.py`, the new environment will include a modified `PS1` prompt containing |
| 101 the `INFRA_PROMPT_TAG` value to indicate that the modified environment is being |
| 102 used. By default, this value is "[cr go] ", but it can be changed by exporting |
| 103 a different value or disabled by exporting an empty value. |
| 99 | 104 |
| 100 ## Dependency management | 105 ## Dependency management |
| 101 | 106 |
| 102 All third party code needed to build `infra/go` is installed into | 107 All third party code needed to build `infra/go` is installed into |
| 103 `infra/go/.vendor` via `deps.py` script that is invoked as part of the bootstrap | 108 `infra/go/.vendor` via `deps.py` script that is invoked as part of the bootstrap |
| 104 process. | 109 process. |
| 105 | 110 |
| 106 There are two files that control what code to fetch: | 111 There are two files that control what code to fetch: |
| 107 | 112 |
| 108 * `deps.yaml` specifies what packages `infra/go` code depends on directly and | 113 * `deps.yaml` specifies what packages `infra/go` code depends on directly and |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 Some Golang related packages are already on `*.googlesource.com` (though it may | 178 Some Golang related packages are already on `*.googlesource.com` (though it may |
| 174 be non obvious at the first glance). For example all `golang.org/x/*` ones are | 179 be non obvious at the first glance). For example all `golang.org/x/*` ones are |
| 175 actually served from `https://go.googlesource.com/`. | 180 actually served from `https://go.googlesource.com/`. |
| 176 | 181 |
| 177 `deps.py` will warn you if it sees a package being referenced from | 182 `deps.py` will warn you if it sees a package being referenced from |
| 178 a source-of-truth repo, and not a mirror. | 183 a source-of-truth repo, and not a mirror. |
| 179 | 184 |
| 180 If you are positive that a mirror is needed, file | 185 If you are positive that a mirror is needed, file |
| 181 [Infra-Git](https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git
) | 186 [Infra-Git](https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git
) |
| 182 ticket specifying what repository you need to be mirrored. | 187 ticket specifying what repository you need to be mirrored. |
| OLD | NEW |