Skip to content

Commit

Permalink
remove pre go1.5 workaround for Gostrap, see issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyfrasche committed Nov 7, 2015
1 parent 6b2175c commit dad8208
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions compiler.go
Expand Up @@ -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) {
Expand Down Expand Up @@ -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")

Expand All @@ -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")

Expand Down

0 comments on commit dad8208

Please sign in to comment.