mirror of
https://github.com/beego/bee.git
synced 2024-11-25 20:10:55 +00:00
Merge pull request #79 from pabdavis/fix-ubuntu-bee-pack
Fix issue with pack option on ubuntu
This commit is contained in:
commit
850e3dcfd4
5
pack.go
5
pack.go
@ -516,7 +516,6 @@ func packApp(cmd *Command, args []string) int {
|
|||||||
|
|
||||||
str := strconv.FormatInt(time.Now().UnixNano(), 10)[9:]
|
str := strconv.FormatInt(time.Now().UnixNano(), 10)[9:]
|
||||||
|
|
||||||
gobin := path.Join(runtime.GOROOT(), "bin", "go")
|
|
||||||
tmpdir := path.Join(os.TempDir(), "beePack-"+str)
|
tmpdir := path.Join(os.TempDir(), "beePack-"+str)
|
||||||
|
|
||||||
os.Mkdir(tmpdir, 0700)
|
os.Mkdir(tmpdir, 0700)
|
||||||
@ -558,10 +557,10 @@ func packApp(cmd *Command, args []string) int {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if verbose {
|
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.Env = append(os.Environ(), envs...)
|
||||||
execmd.Stdout = os.Stdout
|
execmd.Stdout = os.Stdout
|
||||||
execmd.Stderr = os.Stderr
|
execmd.Stderr = os.Stderr
|
||||||
|
Loading…
Reference in New Issue
Block a user