Uploaded image for project: 'Artifactory Binary Repository'
  1. Artifactory Binary Repository
  2. RTFACT-17473

Failed to resolve go module without slash on its name


    • Type: Improvement
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 6.3.2
    • Fix Version/s: 6.6.0, 6.5.8
    • Component/s: Go
    • Labels:
    • Sprint:
      Leap 35


      I've found a go module that does not have slash on its name. The module is called go4.org and it is being consumed by another module called golang.org/x/build.

      The complete go.mod file can be seen here. The important parts are shown below:

      module golang.org/x/build
      require (
          go4.org v0.0.0-20180417224846-9599cf28b011

      The JFrog CLI also does not support this kind of module name. There is a PR opened here.

      With a modified version of the CLI I was able to push the modules to Artifactory. The issue is when I try to resolve the dependency from Artifactory I'm getting the following error:

      jfrog rt go --server-id=go-center test go
      [Info] Using go: go version go1.11 darwin/amd64
      go: finding github.com/sirupsen/logrus v1.0.6
      go: finding gopkg.in/yaml.v2 v2.2.1
      go: finding gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405
      go: finding golang.org/x/sys v0.0.0-20180906133057-8cf3aee42992
      go: finding golang.org/x/crypto v0.0.0-20180904163835-0709b304e793
      go: finding gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2
      go: finding github.com/stretchr/testify v1.2.2
      go: finding gopkg.in/airbrake/gobrake.v2 v2.0.9
      go: finding github.com/davecgh/go-spew v1.1.0
      go: finding github.com/stretchr/objx v0.1.0
      go: finding github.com/pmezard/go-difflib v1.0.0
      go: finding github.com/onsi/ginkgo v1.6.0
      go: finding github.com/onsi/gomega v1.4.1
      go: finding github.com/stretchr/testify v1.2.0
      go: finding github.com/golang/protobuf v1.2.0
      go: finding github.com/hpcloud/tail v1.0.0
      go: finding golang.org/x/net v0.0.0-20180906233101-161cd47e91fd
      go: finding github.com/stretchr/objx v0.0.0-20140526180921-cbeaeb16a013
      go: finding github.com/pmezard/go-difflib v0.0.0-20151028094244-d8ed2627bdf0
      go: finding gopkg.in/fsnotify.v1 v1.2.1
      go: finding gopkg.in/tomb.v1 v1.0.0-20140529071818-c131134a1947
      go: finding golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f
      go: finding google.golang.org/genproto v0.0.0-20180831171423-11092d34479b
      go: finding golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2
      go: finding cloud.google.com/go v0.27.0
      go: finding golang.org/x/build v0.0.0-20180907172819-a196f5a8e8d3
      go: finding go4.org v0.0.0-20180809161055-417644f6feb5
      go: go4.org@v0.0.0-20180809161055-417644f6feb5: unexpected status (https://admin:AKCp5bBXkrt8xfLbYK2Jj71wzzJQqQLvWLSAeV5QCSx9G9ov7eWTdmThrwPJuYDNag3ohHhHE@go-center.jfrog.team/artifactory/api/go/go/go4.org/@v/v0.0.0-20180809161055-417644f6feb5.info): 404 Not Found
      go: error loading module requirements
        "status": "failure",
        "totals": {
          "success": 0,
          "failure": 1
      [Error] exit status 1


          Issue Links



              • Assignee:
                nadavy Nadav Yogev
                eliom Elio Marcolino
              • Votes:
                0 Vote for this issue
                3 Start watching this issue


                • Created: