Advanced Configuration for Virtual Go Repositories

JFrog Artifactory Documentation

Products
JFrog Artifactory
Content Type
User Guide

Some Remote Import Paths may use go-import meta tags on the remote repository response body to declare the location of a remote VCS root to follow. By default, this behavior is enabled in virtual Go repositories, and Artifactory will follow these tags to download remote modules. To disable this behavior, select the Advanced tab and then uncheck the Enable 'go-import' Meta Tags checkbox, as shown below.

Go_virtual_repo.png

Field

Description

Enable 'go-import' Meta Tags

When checked (default), Artifactory will automatically follow remote VCS roots in go-import meta tags to download remote modules.

'go-import' Allow List

An Allow List of Ant-style path patterns that determine which remote VCS roots Artifactory will follow to download remote modules from when presented with go-import meta tags in the remote repository response. By default, this is set to ** which means that remote modules may be downloaded from any external VCS source.

For example, if you wish to limit remote go-import modules to only be downloaded from github.com, you should remove the default ** pattern and replace it with **/ github.com/**.