Skip to content

Commit

Permalink
Temporary inefficient solution for #3.
Browse files Browse the repository at this point in the history
This causes it to recompile all packages at all times, solving the
problem of potentially using stale packages in a very inefficient
manner. The correct solution is for go command to be improved upstream.
  • Loading branch information
dmitshur committed Apr 25, 2014
1 parent 27e53df commit 95bb2b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion goe.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func run(src string) (output string, err error) {
CheckError(err)

// Compile and run the program
cmd := exec.Command("go", "run", tempFile)
cmd := exec.Command("go", "run", "-a", tempFile)
cmd.Stdin = os.Stdin
out, err := cmd.CombinedOutput()

Expand Down

0 comments on commit 95bb2b3

Please sign in to comment.