I’m trying to build Hugo from source to be able to make custom Docker containers for different platforms. During initial testing though, I’m just working in a clean Ubuntu 22.04 container running on AMD64 and manually running the commands that will eventually go into my Dockerfile.
apt update && \ export DEBIAN_FRONTEND=noninteractive && \ apt upgrade -y && \ apt install -y golang git CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
This downloads the dependencies just fine until:
# github.com/gohugoio/hugo/common/types firstname.lastname@example.org/common/types/types.go:96:30: undefined: atomic.Int64
And the process dies with an exit code of 2.
I have tried searching for that error but, haven’t found anything related. Any suggestions as to what might be wrong would be greatly appreciated.