- I have Artifactory set up and working, serving other artifacts (RPM, etc)
- I would like to have local copies of public and private Go programs and libraries
- to ensure version consistency
- to let public repositories get bugs out
- to let public repositories secure from unauthorized alterations
- I've created a Go repository in Artifactory, and populated it with, as an example, spf13/viper using frog-cli (which created a zip file and a mod file)
Questions:
- Is the zip file the proper way to store Go modules in Artifactory?
- How does one use the zip file in a Go program? E.g. the URL to get the zip file is http://hostname/artifactory/reponame/github.com/spf13/viper/@v/v1.6.1.zip (and .mod for the mod file) E.g., do I set GOPATH to some value?
- Is there a way to ensure all requirements are automatically included in the local Artifactory repository? At the time of the primary package's (e.g. viper) inclusion into the local Artifactory repository?