Hi,
I am trying to use athens to cache public packages in my local server.
Now, I set GlobalEndpoint,FilterFile and Storage.Disk in athens.toml and then execute go mod tidy. Those packages were downloaded, but not stored in RootPath which I set.
I have to download again and again. In other words, athens' cache does not work.
How should I do?
Thanks.
+1
Hey @Haiyung and @MkAnHui - we don't have functionality in Athens yet to fill up Athens storage from upstream sources besides version control systems, because there hasn't been a use case for it.
Right now, if you set GlobalEndpoint, Athens will return a redirect and tell the Go tool to go and fetch code from the proxy. Do either of you have a use case for making it store the code?
The GlobalEndpoint (bad name for legacy reasons) and the FilterFile are top level that are explicitly designed for not reaching our storage or domain layer in any way.
If you'd like to point Athens to another Public Proxy while still caching the modules, use the DownloadFile documented here: https://docs.gomods.io/configuration/download/
Please feel free to re-open this issue if I misunderstood :)
Most helpful comment
The GlobalEndpoint (bad name for legacy reasons) and the FilterFile are top level that are explicitly designed for not reaching our storage or domain layer in any way.
If you'd like to point Athens to another Public Proxy while still caching the modules, use the DownloadFile documented here: https://docs.gomods.io/configuration/download/
Please feel free to re-open this issue if I misunderstood :)