Module cache

When I do this:

dir = ':resourceDir/modules/'

I get this:

go: GOPATH entry is relative; must be absolute path: "modules/filecache/modules".

Am I doing something wrong?

1 Like

I assume :resourceDir is its default resources, which is relative to the project. This does not work for the module cache (or, you need to set an absolute path) – the validation error comes from Go and is clear enough.

I strongly suggest you keep the modules cache outside of your project. I use the default setting and just set the HUGO_CACHEDIR env variable on my PC/serfver.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.