numtide / devshell

Per project developer environments
https://numtide.github.io/devshell/
MIT License
1.18k stars 86 forks source link

go: add GOPATH option #301

Closed WolfangAukang closed 3 weeks ago

WolfangAukang commented 5 months ago

Needed to add this option because on the workplace I have to create a separate path for my Go directory.

I am using null as default value here because as GOPATH must be an absolute path (it complains it if is relative), using $HOME/go as a default value is not a good idea.

WolfangAukang commented 4 months ago

@zimbatm before pushing my changes and regarding your review, I believe the type for this option should be types.either types.path types.str right? If I leave it only as types.path with $HOME/go as default value, the builds for the PR will fail.