The following HTTP error may happen when adding a private module (repo) to the project even if your SSH keys are properly configured and you have access to the private repo. Private means it’s not a publicly open project on Github/Gitlab/etc.
warning
GONE 410
The reason for that is that the go mod
tool tries to verify the module with its public checksum database, but it cannot find the module listed there (because it’s private).
To skip the check we can declare the repo as private:
Another option is to disable the checksum database verification: