KyleBanks / goggles

🔭 Goggles is a cross-platform GUI for your $GOPATH!
Apache License 2.0
671 stars 18 forks source link

Ability to provide a non-default $GOPATH #23

Closed KyleBanks closed 7 years ago

KyleBanks commented 7 years ago

Currently Goggles cannot detect the $GOPATH (or any environment variables) when launched via the .app, unless the user sets a global $GOPATH environment variable or uses launchctl. Having to request the user to set these up is a pain point.

Better would be to prompt the user for their $GOPATH if the default $HOME/go doesn't exist. The entered value could be stored locally in a config file, and used on subsequent launches.