Re:Golang: Don't be afraid of makefiles
by shriek on Wednesday September 20, 2017 @06:23PM
(#15298879)
I don't think you have to go that far. I think something like https://direnv.net/ should work too. Although, I do agree that having this restriction in the first place is bizarre.
The only downside is that your text editor might stop offering some features when editing a go file, since the import paths might not point to the actual location.