ARTIFACTORY: How to configure Go Smart Repository

Products
Frog_Artifactory
Content Type
User_Guide
AuthorFullName__c
Shivani Budhodi
articleNumber
000006487
FirstPublishedDate
2025-06-30T07:16:44Z
lastModifiedDate
2025-06-29

ARTIFACTORY: How to configure Go Smart Repository

Introduction 

This guide outlines the steps to configure a smart remote repository for Go packages within Artifactory. Due to Go package resolution being exclusively supported through a virtual repository, the configuration of a smart remote repository for Go differs from other package types. These instructions are applicable for configuring a smart remote repository in another Artifactory instance or on Artifactory Edge nodes.

Step-by-step instructions:
  1. On the source Artifactory instance, create a virtual repository that aggregates a remote repository pointing to the default Go proxy URL: `[https://proxy.golang.org](https://proxy.golang.org)`.
     
  2. Verify that the Go packages are getting downloaded successfully from the source Artifactory instance. For instructions on how to resolve a Go package, please refer to the “Set me up” page.

    User-added image 
  3. Next, on the Edge instance, create a smart remote repository that points to the virtual repository created on the source Artifactory instance. Then, aggregate this smart remote repository into a virtual repository on the Edge instance.

    Example URL to be configured in the Smart Remote Repository (on the target/Edge instance):
    https://<SOURCE_ART_URL>/artifactory/api/go/<SOURCE_VIRTUAL_REPO_NAME>/

     
  4. Configure the Go client to utilize the virtual repository on the target Artifactory instance, and then proceed to resolve the Go packages.
     

User-added image

User-added image


User-added image