Resolving Go Only Via Local or Virtual Repositories
Artifactory only supports resolution of Go packages from virtual Go repositories. To resolve Go from other local or remote Go repositories, you need to aggregate them in a virtual Go repository.
go.mod
is a metadata file that describes a Go package. It contains the package's module name and a list of its dependencies.
To allow successful resolution of a package, the Go client requires a corresponding go.mod
file to be found in the same folder.
For example, in this Hello Worlds
Go project, the go.mod file specifies a module github.com/you/hello
, with a single dependency, rsc.io/quote v1.5.2.
go.mod
module github.com/you/hello require rsc.io/quote v1.5.2