Go private package

My repository is in GitLab, and GitLab has an official documenthttps://docs.gitlab.com/ee/user/project/use_project_as_go_package.htmlarrow-up-right that talks about this; I didn't use the method described there

There is a package A that wants to call another private package B

First follow the official tutorial once, then inside package A

export GOPRIVATE=git.john.dev/cloud/packageb
go get git.john.dev/cloud/packageb

Then a window will pop up asking you to enter your GitLab username and password

Last updated