Closed KantarBruceAdams closed 4 years ago
Please describe the environment and the filesystem layout that you are using. The wiki page for GOPATH mentions the setup that gobco supports. As far as I can see, you are using a non-standard setup.
Feedback timeout.
Sorry I wasn't able to look into this further. I think I resolved my own issue. I think it was related to modules being picked up for a 'tools.go' to fix tool versions like godbc and modules for the main program becoming confused with each other.
I have been using an old version with some success:
Passing arguments through to go test as follows:
I now looking to migrate to a more recent version. I find that gobco no longer accepts these options. Presumably it should now be something like:
However, I cannot get far enough to try this. I am using go 1.11 as that is the latest version backported to Debian 9 (Stretch).
If I run gobco by itself from my source directory I get the somewhat cryptic:
I do not use GOPATH. It is unset in my environment. However go env shows it as
Which I think is not a coincidence. Sure enough if I run:
I get instead:
My code is not in a directory called src however. If I rename the path to src just to explore this issue I can then run:
It gets further but then fails to find packages I depend on as these are not in sub-directories of src (i.e. relative to GOPATH) either: E.g.
Do you have any suggestions as to how to resolve this?