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:
- 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)`.
- 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.
- 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>/
- Configure the Go client to utilize the virtual repository on the target Artifactory instance, and then proceed to resolve the Go packages.