Hugo mod failing in v0.91.1 but works in v0.91.0

The Go version in my system is currently v1.17.5.

I tried a combination just in case:

  • If I try hugo mod clean --all in 0.91.0 it works too. But if I try it in v0.91.1, same error.
  • I also tried hugo mod clean --all in 0.91.0 then tried hugo mod get -u in v0.91.1, same error.
  • hugo mod clean --all then hugo mod get -u in 0.91.0; then hugo mod get -u in 0.91.1 the error is shorter:
go get: module github.com/YourOnly-One/hugo-semantic-web: git ls-remote -q origin in /tmp/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/random_alphanumeric: exit status 128:
	git@github.com: Permission denied (publickey).
	fatal: Could not read from remote repository.
	
	Please make sure you have the correct access rights
	and the repository exists.
go get: module github.com/bep/docuapi/v2: git ls-remote -q origin in /tmp/hugo_cache/modules/filecache/modules/pkg/mod/cache/vcs/random_alphanumeric: exit status 128:
	git@github.com: Permission denied (publickey).
	fatal: Could not read from remote repository.
	
	Please make sure you have the correct access rights
	and the repository exists.