From 3f1d563da5ef54c828bb59a5c0884bbbe2293336 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 6 Apr 2017 15:57:39 -0700 Subject: [PATCH] Updated Gomote (markdown) --- Gomote.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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 +```