From d83ddc6b529e78173c3c527ad74bb68ebc285bea Mon Sep 17 00:00:00 2001 From: Bill Davis Date: Tue, 28 Oct 2014 15:30:53 -0400 Subject: [PATCH] Fix issue with pack option on ubuntu --- pack.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pack.go b/pack.go index 6a605d2..5b1d022 100644 --- a/pack.go +++ b/pack.go @@ -516,7 +516,6 @@ func packApp(cmd *Command, args []string) int { str := strconv.FormatInt(time.Now().UnixNano(), 10)[9:] - gobin := path.Join(runtime.GOROOT(), "bin", "go") tmpdir := path.Join(os.TempDir(), "beePack-"+str) os.Mkdir(tmpdir, 0700) @@ -558,10 +557,10 @@ func packApp(cmd *Command, args []string) int { } if verbose { - fmt.Println(gobin, " ", strings.Join(args, " ")) + fmt.Println("go ", strings.Join(args, " ")) } - execmd := exec.Command(gobin, args...) + execmd := exec.Command("go", args...) execmd.Env = append(os.Environ(), envs...) execmd.Stdout = os.Stdout execmd.Stderr = os.Stderr