Hugo mod init not seeing go in path

Clean Debian 11 install.

# go version
go version go1.17.3 linux/amd64

# git version
git version 2.30.2

# echo $PATH
/usr/local/go/bin:/usr/local/go/bin:/usr/local/go/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/snap/bin

# hugo mod init
Error: failed to init modules: exec: “go”: executable file not found in $PATH

So what is going on here? Why is the mod module not seeing something that is obviously in the path?

Don’t use the Hugo snap package.

See https://github.com/gohugoio/hugo/issues/9078