[infra] Update docs with respect to Go modules.

Docs-Preview: https://skia.org/?cl=255085
Change-Id: I8911862ca9814b89b8598ad743b1faa9c524399f
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/255085
Commit-Queue: Ben Wagner aka dogben <benjaminwagner@google.com>
Commit-Queue: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Joe Gregorio <jcgregorio@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Auto-Submit: Ben Wagner aka dogben <benjaminwagner@google.com>
This commit is contained in:
Ben Wagner 2019-11-18 12:40:48 -05:00 committed by Skia Commit-Bot
parent fbfc35590d
commit 9c17be5301
3 changed files with 4 additions and 10 deletions

View File

@ -52,11 +52,6 @@ def gen_tasks_test(train):
except OSError:
return ('Failed to run "%s"; do you have Go installed on your machine?'
% ' '.join(cmd))
if output:
if ('cannot find package "go.skia.org/infra' in output or
'gen_tasks.go:' in output):
return ('Failed to run gen_tests.go:\n\n%s\nMaybe you need to run:\n\n'
'$ go get -u go.skia.org/infra/...' % output)
return output

View File

@ -26,7 +26,6 @@ to specify nightly and weekly jobs as well. For convenience, most repos also
have a `gen_tasks.go` which will generate `tasks.json`. You will need to
[install Go](https://golang.org/doc/install). From the repository root:
$ go get -u go.skia.org/infra/...
$ go run infra/bots/gen_tasks.go
It is necessary to run `gen_tasks.go` every time it is changed or every time an

View File

@ -23,13 +23,13 @@ preview changes much quicker. You must have a recent version (>=8.9) of
you are running on a Google corporate workstation. Installation also means
that you have `$GOPATH/bin` [added to your PATH](https://golang.org/doc/code.html#GOPATH). Run:
go get -u go.skia.org/infra/doc/go/docserver
cd $GOPATH/src/go.skia.org/infra/doc
git clone https://skia.googlesource.com/buildbot
cd buildbot/docserverk
make
And then **from within** the directory of your local Git checkout of Skia run:
docserver --preview --local
docserverk --preview --local
Then visit http://localhost:8000 to preview your changes. There is no need to
restart the server for file changes, but you will need to restart it if there
@ -39,7 +39,7 @@ to appear in the navigation on the right hand side of the page.
If port 8000 is unavailable on your machine you can set the port to use via
the --port flag:
docserver --preview --local --port=:8002
docserverk --preview --local --port=:8002
METADATA
--------