Skip to content

Commit

Permalink
Revert temporary solution to avoid stale builds, unneeded in Go 1.5.
Browse files Browse the repository at this point in the history
This change depends on Go 1.5 being used.

In Go 1.5, a longstanding issue golang/go#10509 has been finally resolved!

Since the generated .go file resides somewhere in a temporary folder, it was
outside the GOPATH boundary, and if a package is built but stale (i.e. source
code has been changed since it was built), the stale version would've been used.

This reverts a temporary inefficient solution (95bb2b3)
of rebuilding absolutely all packages at all times just to avoid the risk of
incorrectly building with a stale package.

Resolves #3.
  • Loading branch information
dmitshur committed Aug 7, 2015
1 parent 62c41d7 commit be8fb0b
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 @@ -37,7 +37,7 @@ func run(src string) error {
}

// Compile and run the program.
cmd := exec.Command("go", "run", "-a", tempFile)
cmd := exec.Command("go", "run", tempFile)
cmd.Stdin = os.Stdin
cmd.Stdout = os.Stdout
cmd.Stderr = os.Stderr
Expand Down

0 comments on commit be8fb0b

Please sign in to comment.