Skip to content

Commit 858cb5b

Browse files
committed
Gomote.md: update Windows paths
c:\workdir is no longer the default workdir for Windows gomote commands. %WORKDIR% should be used instead. Change-Id: I1c735fb47a034797c3f9e4c29bff2ca11fa99a27 Reviewed-on: https://go-review.googlesource.com/c/wiki/+/663475 Commit-Queue: Quim Muntal <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 4333700 commit 858cb5b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Gomote.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -177,20 +177,20 @@ $ gomote run -path '$PATH,$WORKDIR/go/bin' $MOTE go/src/make.bat
177177
$ gomote run -path '$PATH,$WORKDIR/go/bin' $MOTE go/bin/go.exe test cmd/go -short
178178
```
179179

180-
Note: previous versions of the wiki have advised setting GOROOT for gomote 'run' commands (e.g. "-e GOROOT=c:\workdir\go"); this is no longer recommended (causes problems with Go command caching).
180+
Note: previous versions of the wiki have advised setting GOROOT for gomote 'run' commands (e.g. "-e GOROOT=%WORKDIR%\go"); this is no longer recommended (causes problems with Go command caching).
181181

182182
### Subrepos on Windows
183183

184184
```
185185
$ tar --exclude .git -C ~/go/src/ -zc golang.org/x/tools | gomote puttar -dir=gopath/src $MOTE -
186-
$ gomote run -e 'GOPATH=c:/workdir/gopath' $MOTE go/bin/go test -run=TestFixImportsVendorPackage golang.org/x/tools/imports
186+
$ gomote run -e 'GOPATH=%WORKDIR%\gopath' $MOTE go/bin/go test -run=TestFixImportsVendorPackage golang.org/x/tools/imports
187187
```
188188

189189
If ssh'd into the machine, these envvars may be handy:
190190

191191
```
192-
$ set GOPATH=c:\workdir\gopath
193-
$ set PATH=%PATH%;c:\workdir\gopath\bin;c:\workdir\go\bin
192+
$ set GOPATH=%WORKDIR%\gopath
193+
$ set PATH=%PATH%;%WORKDIR%\gopath\bin;%WORKDIR%\go\bin
194194
$ set CGO_ENABLED=0
195195
```
196196

0 commit comments

Comments
 (0)