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

Unified 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: cd into the source area. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | go/bootstrap.py » ('j') | go/bootstrap.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: go/README.md
diff --git a/go/README.md b/go/README.md
index f31e42fa818b9b726ece53dfd3c393e211d6b4dc..d589ac5e6d052abf9b2b57b0eb0870de7d441f95 100644
--- a/go/README.md
+++ b/go/README.md
@@ -2,6 +2,31 @@
[TOC]
+
+## Get the code
+
+The steps for getting the code are:
+
+ 1. [Install depot_tools](https://www.chromium.org/developers/how-tos/install-depot-tools)
+ 1. Run `fetch infra`
+ 1. Run `infra/go/env.py`
+
+
+### Quick Setup
+
+If you are on Linux you can run the [quicksetup script](quicksetup.sh) like so:
+
+```shell
+cd /where/you/want/source/code
+wget -O- "https://chromium.googlesource.com/infra/infra/+/master/go/quicksetup.sh?format=TEXT" | base64 -d | bash
+```
+
+This will create a self-contained `cr-infra-go-area` directory and populate it
+will all necessary tools and source for using or contributing to Chromium's Go
+Infrastructure. Once run, look in `cr-infra-go-area/infra/go/src` for the
+editable source code.
+
+
## Structure
This directory contains a set of scripts to setup and manage a hermetic Go
@@ -36,6 +61,7 @@ manage all dependencies centrally in a single place, thus avoiding issues of
version conflicts and binary bloat due to inclusion of a same third party code
via multiple import paths.
+
## Bootstrap
`infra/go` knows how to bootstrap itself from scratch (i.e. from a fresh
« 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