Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
mseepgood
4y ago
0 comments
Share
The root of the Go project with the go.mod file doesn't have to be the root of the repository.
0 comments
default
newest
oldest
chrsig
4y ago
For that matter, you can have multiple modules in a repository.
hamburglar
4y ago
Doesn’t it? Is this new?
mseepgood
OP
4y ago
As far as I know this was always possible since modules were introduced. You just have to prefix the version tags for Go with the subdirectory in the repo: "my/sub/directory/vX.Y.Z"
hamburglar
4y ago
I swear it didn’t always work this way, but I’m happy to be wrong.
1 more reply
j
/
k
navigate · click thread line to collapse