cmd/go: complete documentation for module code layout #30850
Labels
Documentation
Issues describing a change to documentation.
FrozenDueToAge
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I believe 1.12 is the latest release
What operating system and processor architecture are you using (
go env
)?go env
OutputDescription
(I'm not following the bug template here because this is more of a documentation issue)
I have an internal library which needs to provide versions in multiple languages. So for example, the Python implementation lives in
/python
. I recently was given responsibility for the Golang implementation, which lives in/golang
.I have been having a lot of difficulties importing this library from another Go program I've been trying to migrate to Go modules. One thing I noticed ahead of time might be an issue is that the
go.mod
file isn't in the root of the git repo.I asked around in the Go slack, and nobody was really sure whether this was going to be an issue. I eventually realized that an answer might lie in https://github.com/golang/go/wiki/Modules#faqs--multi-module-repositories. Someone in the Go slack (@heschik) said
I think it should be better documented that the caveats here - needing to tag versions in a special way, etc. - also apply to any repo which doesn't have
go.mod
in the root directory, even if they only have a single Go module.(I mean, if we want to have a broader discussion of whether or not we want to change this behavior somehow, this issue can also be the place for that).
The text was updated successfully, but these errors were encountered: