Commit 1914f3c4 authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'docs/private-project-go-package' into 'master'

Add tip about Go packages

Closes #56493

See merge request gitlab-org/gitlab-ce!24477
parents 411579d7 cf0a4ca5
...@@ -149,3 +149,17 @@ When [renaming a user](../profile/index.md#changing-your-username), ...@@ -149,3 +149,17 @@ When [renaming a user](../profile/index.md#changing-your-username),
work after a rename, making any transition a lot smoother. work after a rename, making any transition a lot smoother.
- The redirects will be available as long as the original path is not claimed by - The redirects will be available as long as the original path is not claimed by
another group, user or project. another group, user or project.
## Use your project as a Go package
Any project can be used as a Go package including private projects in subgroups. To use packages
hosted in private projects with the `go get` command, use a [`.netrc` file](https://ec.haxx.se/usingcurl-netrc.html)
and a personal access token in the password field.
For example:
```text
machine example.gitlab.com
login <gitlab_user_name>
password <personal_access_token>
```
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment