error in Hugo 0.18.1 from AUR

Building the latest Hugo release from AUR (Arch User Repository) fails with the following error message:

cd .; git clone /home/roger/packages/hugo/src/.cache/govendor/
Cloning into '/home/roger/packages/hugo/src/.cache/govendor/'...
error: RPC failed; HTTP 301 curl 22 The requested URL returned error: 301
fatal: The remote end hung up unexpectedly
Error: Remotes failed for:
Failed for "" (failed to clone repo): exit status 128

The error is supposedly caused by a change with the latest git release where git no longer follows redirects by default and thus “breaks” The issue is discussed further at where a git-config workaround is offered.

Another workaround is to simply clone go-yaml directly from after the initial build fails:

git clone /home/roger/packages/hugo/src/.cache/govendor/

Apply the makepkg command again and Hugo will build successfully.

Roger Comply avatar
Roger Comply
Thank you for reading!
Feel free to waste more time by subscribing to my RSS feed.