To fully resolve a Go project, each transitive dependency needs to have its corresponding go.mod file in place in the same folder where it resides. However, in many cases, the go.mod file does not exist. To resolve a Go project in this case, follow these steps:
Manually download all required dependencies from the internet to your local machine
Run your build while resolving dependencies locally
Publish your built package to Artifactory as described below.
From this point on, you can rebuild your project while resolving dependencies from Artifactory