There are two methods for resolving Go modules from Artifactory:
Using the Go client
Using JFrog CLI
Resolving Go modules only via local or virtual repositories
Artifactory only supports resolution of Go modules from local or virtual Go repositories. To resolve Go modules from remote Go repositories, you need to aggregate them in a virtual Go repository.
Resolve Go Modules Using the Go Client
To resolve Go modules from your Go repository in Artifactory using the Go client, run the following command from your project’s root directory:
go build
Resolve Go Modules Using the JFrog CLI
To resolve Go modules using the JFrog CLI, run the following command under your project’s root directory:
jfrog rt go build