Share GOMODCACHE between unix users

70 views
Skip to first unread message

wilk

unread,
Aug 19, 2020, 12:39:21 PM8/19/20
to golan...@googlegroups.com
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

Marcin Romaszewicz

unread,
Aug 19, 2020, 12:50:17 PM8/19/20
to wilk, golang-nuts
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

--
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 golang-nuts...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/rhim4i%24u2p%241%40ciao.gmane.io.

wilk

unread,
Aug 19, 2020, 1:04:31 PM8/19/20
to golan...@googlegroups.com
On 19-08-2020, Marcin Romaszewicz wrote:
> --00000000000071f06b05ad3dc9f8
> Content-Type: text/plain; charset="UTF-8"
>
> 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.

With an alternate GOPROXY the GOMODCACHE of each users are still filled isn'it ?

I've started an issue :
https://github.com/golang/go/issues/40895

--
William Dodé

Marcin Romaszewicz

unread,
Aug 19, 2020, 4:15:25 PM8/19/20
to wilk, golang-nuts
Yes, each user would populate their own module cache locally if using your own proxy.

--
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 golang-nuts...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages