Create a Go Smart Remote Repository

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Go package resolution is supported exclusively through virtual repositories. Therefore, the configuration of a Smart Remote repository for Go differs from other package types.

To create a Go Smart Remote repository:

  1. On the first Artifactory instance (JFROG_INSTANCE_1), do the following:

    1. In the Administration module, go to Repositories > Create a Repository > Remote.

    2. Choose Go as the package type.

    3. In the Basic tab, verify that the URL is set to https://proxy.golang.org.

    4. Enter additional basic and advanced settings as required, and then click Create Remote Repository.

    You now have a virtual repository that points to the official Go registry.

  2. On the first Artifactory instance, create a virtual repository that aggregates the remote repository you just created. For more information, see Configure a Virtual Repository.

  3. On the second Artifactory instance, create a Smart Remote repository that points to the virtual repository on the first Artifactory instance. The URL will look like this:

    https://<JFROG_INSTANCE_1>/artifactory/api/go/<JFROG_INSTANCE_1_VIRTUAL_REPO>

  4. Enter your username and password for JFROG_INSTANCE_1. Alternatively, enter a valid access token issued by JFROG_INSTANCE_1.

  5. Click the Test button to verify the connection to the first Artifactory instance.

  6. To configure your Go client with the newly created Smart Remote repository, see Connect your Go Client to Artifactory.