Skip to content

Commit

Permalink
Update internal/build/build.go
Browse files Browse the repository at this point in the history
Co-authored-by: 张之阳 <[email protected]>
  • Loading branch information
aofei and luoliwoshang authored Jun 19, 2024
1 parent 4023b64 commit a94c116
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions internal/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,9 @@ func NewDefaultConf(mode Mode) *Config {
}

func envGOPATH() (string, error) {
if gopath := os.Getenv("GOPATH"); gopath != "" {
return gopath, nil
}
env := "HOME"
switch runtime.GOOS {
case "windows":
Expand Down

0 comments on commit a94c116

Please sign in to comment.