I considered the same thing with an existing GOBIN env var. I did actually test it and found it worked as expected. Items earlier in the list seem to have higher priority. I prefer not to use setenv, because I want to exec into the binary later without GOBIN clobbered, which means keeping the current environment pristine. Good point about it not matching the Python version, but then a few other things don't either now. :)
Something I can't get my head around: On line 50-52, I have a function that returns the result of getting the current directory (curDir) joined with the package path (maybeToList package). Is there someway to get the current directory without having to store the action the way that I am doing? <$> would work if the current directory was the last argument to the joinPath, but here it's the first.
Thanks so much for your help.