This topic describes how to create a Go repository in Artifactory. This is required before deploying and resolving Go modules. There are three primary types of repositories:
Local repositories: Where you store and share 1st and 2nd party Go modules with your organization
Remote repositories: Enable you to download from any remote location, including external package registries or other Artifactory instances
Virtual repositories: Enable aggregating remote and local repositories, enabling your organization to scale by providing a single URL that provides access to multiple repositories and types
For more information on JFrog repositories, see Repository Management Overview.
Prerequisite: You need Admin or Project Admin permissions to create a Go repository. If you don't have Admin permissions, the option will not be available.
To create a Go repository:
In the Administration tab, click Repositories | Create a Repository
Select the repository type you want to create (local, remote, or virtual). The Select Package Type window opens.
Select Go.
In the New Repository window, configure the required fields (described in the following list).
For Local Repositories, In the Repository Key field, type a meaningful name for the repository. For example,
go-local-repo-1. For more information on local repositories and their possible settings, see Local Repositories.For Remote Repositories, additionally verify the Repository URL and update it if needed. For more information related specifically to setting up remote Go repositories in Artifactory, see Set Up Remote Go Repositories.
For more general information on remote repositories and the relevant settings, see Remote Repositories.
For Virtual Repositories, additionally, select one or more local or remote repository types to include in the virtual repository. For more information on virtual repositories and the relevant settings, see Virtual Repositories.
When you are finished configuring the repository, click Create Repository. The repository is created and the Repositories window is displayed.