From be8fb0b960a4b305b0162ca2379f567ea2665491 Mon Sep 17 00:00:00 2001 From: Dmitri Shuralyov Date: Thu, 6 Aug 2015 21:16:14 -0700 Subject: [PATCH] Revert temporary solution to avoid stale builds, unneeded in Go 1.5. 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 (95bb2b3351332669e3cd3d52a74e69e01ca3e623) of rebuilding absolutely all packages at all times just to avoid the risk of incorrectly building with a stale package. Resolves #3. --- goe.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/goe.go b/goe.go index d466f3a..dca5f06 100644 --- a/goe.go +++ b/goe.go @@ -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