Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Chromium Infra Go Area | 1 # Chromium Infra Go Area |
| 2 | 2 |
| 3 [TOC] | 3 [TOC] |
| 4 | 4 |
| 5 ## Get the code | |
| 6 | |
| 7 The steps for getting the code are; | |
|
Eric Burnett
2016/06/17 17:23:30
';' -> ':'
mithro
2016/06/18 07:13:17
Done.
| |
| 8 | |
| 9 1) [Install depot_tools](https://www.chromium.org/developers/how-tos/install-de pot-tools) | |
| 10 1) Run `fetch infra` | |
| 11 1) Run `infra/go/env.py` | |
| 12 | |
| 13 ### Quick Setup | |
|
tandrii(chromium)
2016/06/17 09:28:44
s/Quick Setup/I just want to start coding
(aka i
mithro
2016/06/18 07:13:17
"I just want to start coding" looks weird in the T
| |
| 14 | |
| 15 If you are on Linux you can run the [quicksetup script](quicksetup.sh) like so; | |
|
Eric Burnett
2016/06/17 17:23:31
';' -> ':'
mithro
2016/06/18 07:13:17
Done.
| |
| 16 | |
| 17 ```shell | |
|
tandrii(chromium)
2016/06/17 09:28:44
This works fine for github flavor of MD, but I'm n
tandrii(chromium)
2016/06/17 09:39:21
It does work in Gerrit too: https://chromium.googl
mithro
2016/06/18 07:13:17
Acknowledged.
mithro
2016/06/18 07:13:17
I can't actually see how you tell that it works in
| |
| 18 cd /where/you/want/source/code | |
| 19 wget -O- "https://chromium.googlesource.com/infra/infra/+/master/go/quicksetup.s h?format=TEXT" | bash | |
|
Vadim Sh.
2016/06/17 17:38:46
format=TEXT actually returns base64 encoded text :
mithro
2016/06/18 07:13:17
Luckily `base64` command exists. Added to the comm
| |
| 20 ``` | |
|
Eric Burnett
2016/06/17 17:23:31
Can you also add a comment explaining what this wi
mithro
2016/06/18 07:13:17
Done.
| |
| 21 | |
| 5 ## Structure | 22 ## Structure |
| 6 | 23 |
| 7 This directory contains a set of scripts to setup and manage a hermetic Go | 24 This directory contains a set of scripts to setup and manage a hermetic Go |
| 8 building environment. We pin versions of the Go toolset and all third party | 25 building environment. We pin versions of the Go toolset and all third party |
| 9 dependencies that the infra code is using. It is important for getting | 26 dependencies that the infra code is using. It is important for getting |
| 10 non-flaky, reproducible builds of Go code on a CI and on developers' machines. | 27 non-flaky, reproducible builds of Go code on a CI and on developers' machines. |
| 11 | 28 |
| 12 Structurally `infra/go` represents two workspaces (two directories in | 29 Structurally `infra/go` represents two workspaces (two directories in |
| 13 `$GOPATH`): | 30 `$GOPATH`): |
| 14 | 31 |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 147 Some Golang related packages are already on `*.googlesource.com` (though it may | 164 Some Golang related packages are already on `*.googlesource.com` (though it may |
| 148 be non obvious at the first glance). For example all `golang.org/x/*` ones are | 165 be non obvious at the first glance). For example all `golang.org/x/*` ones are |
| 149 actually served from `https://go.googlesource.com/`. | 166 actually served from `https://go.googlesource.com/`. |
| 150 | 167 |
| 151 `deps.py` will warn you if it sees a package being referenced from | 168 `deps.py` will warn you if it sees a package being referenced from |
| 152 a source-of-truth repo, and not a mirror. | 169 a source-of-truth repo, and not a mirror. |
| 153 | 170 |
| 154 If you are positive that a mirror is needed, file | 171 If you are positive that a mirror is needed, file |
| 155 [Infra-Git](https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git ) | 172 [Infra-Git](https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git ) |
| 156 ticket specifying what repository you need to be mirrored. | 173 ticket specifying what repository you need to be mirrored. |
| OLD | NEW |