Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: go/README.md

Issue 2071243002: infra/go: Adding setup instructions and quick setup script. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Review fixes. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | go/bootstrap.py » ('j') | go/bootstrap.py » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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:
8
9 1) [Install depot_tools](https://www.chromium.org/developers/how-tos/install-de pot-tools)
M-A Ruel 2016/06/21 12:21:44 Use google markdown style https://github.com/googl
mithro 2016/06/22 04:39:20 I assume you mean the "replace ) with ."? I couldn
10 1) Run `fetch infra`
11 1) Run `infra/go/env.py`
12
13 ### Quick Setup
14
15 If you are on Linux you can run the [quicksetup script](quicksetup.sh) like so:
16
17 ```shell
18 cd /where/you/want/source/code
19 wget -O- "https://chromium.googlesource.com/infra/infra/+/master/go/quicksetup.s h?format=TEXT" | base64 -d | bash
20 ```
21
22 This will create a self-contained `cr-infra-go-area` directory and populate it
23 will all necessary tools and source for using or contributing to Chromium's Go
24 Infrastructure. Once run, look in `cr-infra-go-area/infra/go/src` for the
25 editable source code.
26
M-A Ruel 2016/06/21 12:21:44 Style nit; put 2 empty lines above each title.
mithro 2016/06/22 04:39:20 Done.
5 ## Structure 27 ## Structure
6 28
7 This directory contains a set of scripts to setup and manage a hermetic Go 29 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 30 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 31 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. 32 non-flaky, reproducible builds of Go code on a CI and on developers' machines.
11 33
12 Structurally `infra/go` represents two workspaces (two directories in 34 Structurally `infra/go` represents two workspaces (two directories in
13 `$GOPATH`): 35 `$GOPATH`):
14 36
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
147 Some Golang related packages are already on `*.googlesource.com` (though it may 169 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 170 be non obvious at the first glance). For example all `golang.org/x/*` ones are
149 actually served from `https://go.googlesource.com/`. 171 actually served from `https://go.googlesource.com/`.
150 172
151 `deps.py` will warn you if it sees a package being referenced from 173 `deps.py` will warn you if it sees a package being referenced from
152 a source-of-truth repo, and not a mirror. 174 a source-of-truth repo, and not a mirror.
153 175
154 If you are positive that a mirror is needed, file 176 If you are positive that a mirror is needed, file
155 [Infra-Git](https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git ) 177 [Infra-Git](https://bugs.chromium.org/p/chromium/issues/entry?template=Infra-Git )
156 ticket specifying what repository you need to be mirrored. 178 ticket specifying what repository you need to be mirrored.
OLDNEW
« no previous file with comments | « no previous file | go/bootstrap.py » ('j') | go/bootstrap.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698