I have many users building Go at my company, and instead of sharing the module cache on the filesystem, a much better approach is to use a caching module proxy, such as Athens (https://github.com/gomods/athens).
See the documentation for the GOPROXY environment variable. -- Marcin On Wed, Aug 19, 2020 at 9:39 AM wilk <[email protected]> wrote: > Hi, > > I would like to have a global GOMODCACHE for all unix users, or a group of > users to gain space and speed. I trust all the users. > > Using the same GOMODCACHE for all users doesn't works, the perms are only > writable by the user running the build. > > Is there a workaround ? Could it be a feature ? > > Thanks > > -- > William > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/rhim4i%24u2p%241%40ciao.gmane.io > . > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CA%2Bv29LttqD7CEDOpRVvEyqRwB7P9WbX9AoAW-mJOf3d4jPrBNQ%40mail.gmail.com.
