Create a Go Repository
To install or publish Go packages, creation of a Go repository is required. Check out Nexus Repository Management and Repository Types to learn more.
Go Proxy Repository
Note
Go proxy repository stores only the Go modules and not the Checksum data.
If you want to cache the checksum data which is optional, create a raw (proxy) repository and point the Remote storage URL to https://sum.golang.org. Make sure to uncheck the Strict Content Type Validation.
Use Nexus proxy repository when you want to download packages and centralize package caching of external dependencies. To learn more, check Proxy Repositories.
To create a new Go proxy repository, take the following steps:
Navigate to Settings → Repository → Repositories.
Select the Create repository button.
From the list of Recipes, select go (proxy).
In the form that appears, complete the required fields.
Repository Name, for example go-proxy
Remote storage URL, for example https://proxy.golang.org
Blob store
Complete the additional fields for configurations you want to add for your repository. Available configurations differ by repository format and type. See Configurable Repository Fields for more details.
Select Create repository.

Go Hosted Repository
Use Nexus hosted repository when you want to publish and store your own internal artifacts and third-party components, so they can be consumed via Nexus. To learn more, check Hosted Repositories.
To create a new Go hosted repository, take the following steps:
Navigate to Settings → Repository → Repositories.
Select the Create repository button.
From the list of Recipes, select go (hosted).
In the form that appears, complete the required fields.
Repository Name, for example go-hosted
Blob store
Complete the additional fields for configurations you want to add for your repository. Available configurations differ by repository format and type. See Configurable Repository Fields for more details.
Select Create repository.

Go Group Repository
Use Nexus group repository when you want to combine multiple other repositories (proxy, hosted, and other groups) and expose them through a single URL. To learn more, check Group Repositories.
To create a new Go group repository, take the following steps:
Navigate to Settings → Repository → Repositories.
Select the Create repository button.
From the list of Recipes, select go (group).
In the form that appears, complete the required fields.
Repository Name, for example go-group
Blob store
Member repositories in the desired order.
Complete the additional fields for configurations you want to add for your repository. Available configurations differ by repository format and type. See Configurable Repository Fields for more details.
Select Create repository.
