Menu

Managing go modules with go.work

#golang#redditgolang#modules#work#multiple
Reading 0:00
15s threshold

Hello everyone,

I am kind of stuck on how to manage my modules (individual go.mods) with go.work files,

I don‘t mean locally, that works just fine but rather when using it for building and actually version controlling it…

When reading about this I always saw something along the lines of „use only for development, not for releasing“.

But I am wondering what to do instead, I already tried just pushing git tags for every module, but that grew out of hand quickly (also makes a mess, when having multiple import steps, root > module layer 1 > layer 2 > …).

I still want to have multiple go.mods, so that I can independently import them from other projects.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.