From dad8208924989e3a5675335a11879291d3dce14d Mon Sep 17 00:00:00 2001 From: jimmyfrasche Date: Fri, 6 Nov 2015 21:57:54 -0800 Subject: [PATCH] remove pre go1.5 workaround for Gostrap, see issue #2 --- compiler.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/compiler.go b/compiler.go index 5c1c506..adfce2d 100644 --- a/compiler.go +++ b/compiler.go @@ -23,11 +23,6 @@ type Gostrap struct { //arguments appended to its Args list. It defaults to using os.Stdout //and os.Stderr for the Stdout and Stderr of the Cmd, respectively. // -//Note that the go command will not rebuild out of date packages from -//other workspaces, and that Gostrap executes in its own workspace, so -//you may have to include the -a flag to force rebuilding of all dependent -//packages. -// //You should investigate Run and Install first, as they are likely what you //need, and if not their source, and WithGostrap's, show how Gostrap is used. func NewGostrap() (*Gostrap, error) { @@ -147,7 +142,7 @@ func Run(file []byte, tags ...string) error { return err } - t.Args = append(t.Args, "run", "-a") + t.Args = append(t.Args, "run") t.Args = append(t.Args, tagargs(tags)...) t.Args = append(t.Args, "main.go") @@ -171,7 +166,7 @@ func Install(name, location string, file []byte, tags ...string) error { return err } - t.Args = append(t.Args, "build", "-a") + t.Args = append(t.Args, "build") t.Args = append(t.Args, tagargs(tags)...) t.Args = append(t.Args, "-o", name, "main.go")