diff --git a/Gomote.md b/Gomote.md index 602f5e86..74260707 100644 --- a/Gomote.md +++ b/Gomote.md @@ -75,3 +75,18 @@ The "gomote run" command has many of its own flags: -system run inside the system, and not inside the workdir; this is implicit if cmd starts with '/' ``` + +## Tricks + +### 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 +``` + +### Subrepos on Windows + +``` +$ tar -C ~/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 +```