Skip to content

Docs feedback: Go-get issue workaround

Not sure but I think this page would be the most appropriate: https://docs.gitlab.com/ee/development/go_guide/

There was an issue describing gitlab not support go-get with sub-groups and even though this was solved a customer had to follow a workaround to be able to use the command go-get.

The workaround was described in another customer's comment: gitlab-foss#37832 (comment 285775193)

After testing this, my customer produced a document with all the details/flow he had to follow to use this. He had to:

  • Generate a new API token with api and repo read scopes.
  • Create ~/.netrc with the following: machine gitlab.comlogin {username} password {api token}-
  • Ensure insteadOf was removed for gitlab from ~/.gitconfig
  • Run go clean --modcache

Document attached: Drive internal link

He suggested we could use this information to help customers with the same issues

Edited by 🤖 GitLab Bot 🤖