I am a newbie and currently learning about module functions in Hugo.
I want to ask, when I use the command
hugo mod get github.com/hugomods/search
It gives a message that the module is downloaded:
go: downloading github.com/hugomods/search v0.4.5
go: added github.com/hugomods/search v0.4.5
Now, what I’m curious about is, where is the directory where the module is stored?
Sorry for my somewhat silly question, hehe.
razon
2
The modules located at the modules/filecache/modules/pkg/mod
which related to the cacheDir. Take Ubuntu without cacheDir setting as an example.
ls ~/.cache/hugo_cache/modules/filecache/modules/pkg/mod/github.com/hugomods | grep search
If you’re not sure the location of cacheDir, use hugo config | grep cachedir
to print it.
2 Likes
Thank you so much!
I finally found it

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