Thanks in advance for the help.
I have been using Hugo Modules instead of Git submodules on two new local repositories and everything has been great the last few days. No problem. But today …
When I run Hugo Server on my local repositories that used Hugo Modules, I get the following error:
go: github.com/jpanther/congo/v2@v2.6.1: reading github.com/jpanther/congo/go.mod at revision v2.6.1: git ls-remote -q origin in /var/folders/v9/1d78tzlj70jgt2vnxfb4xl8m0000gp/T/hugo_cache_hsheridanstandard/modules/filecache/modules/pkg/mod/cache/vcs/066af87f3ece5bb7d6b6b53ce98f8b34566e9be8285986a3e33bbfe82661fac4: exit status 128:
fatal: 'origin' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
When I run Hugo mod init I get the same error message.
When I run hugo mod clean --all same error message.
When I run hugo config | grep cachedir same error message.
hugo env command shows:
hugo v0.114.0+extended darwin/amd64 BuildDate=unknown
GOOS="darwin"
GOARCH="amd64"
GOVERSION="go1.20.5"
github.com/sass/libsass="3.6.5"
github.com/webmproject/libwebp="v1.2.4"
It looks like a permissions issue and I have half a mind to try the hugo commands after switching over to sudo for my admin account on the machine. But, what is confusing about that is that I did not need admin rights the first time around to run mod init.
More likely, I suspect that Mac OS has cleaned the cache where the module was … and I thought that re-running hugo mod init would restore the cache but apparently I am incorrect
I have a private Github repository, but if it helps, I can invite anyone as a collaborator.
Obviously, the above issue is local on my machine.
hugo server fails for the two repositories where I used Hugo Modules.
for the local repositories where I used git submodules, hugo server works just fine.
I appear to be having the same issue as this post below but I am not using micromodal and removing Congo from the repository would not be a good idea:
Thanks in advance for the help.