Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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"


I swear it didn’t always work this way, but I’m happy to be wrong.


The only difference is that you are expected to tag differently. For instance if you had reporoot/hello/go.mod, you would create tags like hello/v1.2.3




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: