Updated Gomote (markdown)

Josh Bleecher Snyder 2019-02-28 16:45:04 -08:00
parent 7fe9b69e44
commit ff134184f1

@ -95,16 +95,25 @@ builder name "<build-config-name>@ip[:port>", such as
### Windows
```
$ gomote run -path '$PATH,$WORKDIR/go/bin' -e 'GOROOT=c:\workdir\go' user-bradfitz-windows-amd64-gce-0 go/bin/go.exe test cmd/go -short
$ gomote run -path '$PATH,$WORKDIR/go/bin' -e 'GOROOT=c:\workdir\go' $G go/src/make.bat
$ gomote run -path '$PATH,$WORKDIR/go/bin' -e 'GOROOT=c:\workdir\go' user-bradfitz-windows-amd64-gce-0 go/bin/go.exe test cmd/go -short
```
### Subrepos on Windows
```
$ tar -C ~/go/src/ -zc golang.org/x/tools | gomote puttar -dir=gopath/src $MOTE
$ tar --exclude .git -C ~/go/src/ -zc golang.org/x/tools | gomote puttar -dir=gopath/src $MOTE
$ gomote run -e 'GOPATH=c:/workdir/gopath' $MOTE go/bin/go test -run=TestFixImportsVendorPackage golang.org/x/tools/imports
```
If ssh'd into the machine, these envvars may be handy:
```
$ set GOPATH=c:\workdir\gopath
$ set PATH=%PATH%;c:\workdir\gopath\bin;c:\workdir\go\bin
$ set CGO_ENABLED=0
```
### Subrepos on Unix
Testing golang.org/x/sys/unix on $MOTE
@ -126,4 +135,4 @@ To get an access token, you will need to ask one of the editors of the `golang-o
```
$ echo d41d8cd98f00b204e9800998ecf8427e > $HOME/.config/gomote/user-$USER.token
```
```