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

Error 404 while trying to resolve a specific package from go virtual

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: 7.38.0
    • Fix Version/s: None
    • Component/s: Go, Virtual Repositories
    • Labels:
      None

      Description

      Problem description: 

      While trying to resolve a package from the virtual go repository, we get a 404 error. The same package can be pulled through 'https://proxy.golang.org' without any issues.

      What is the expected behavior? 

      To be able to pull the package through the virtual repository without any issues.

      The virtual repository has a remote-repo pointing to https://proxy.golang.org

      Steps to reproduce: 

      1. Create a go virtual repository in Artifactory, which has a remote-repo pointing to https://proxy.golang.org in it.
      2. Set up the GOPROXY to point to the virtual GO repository:
      3. GOPROXY="https://<artifactory-url>/artifactory/api/go/default-go"
      4. Navigate to a folder that has a 'go' project in it(Otherwise the 'go' client won't let you execute the 'go get' command. You may clone https://github.com/jfrog/project-examples and navigate to 'golang-example' folder
      5. Try pulling this package with 'go get': go get -v golang.org/x/exp/slices
      6. An error of 404 will be prompted by the client.
      7. Change the GOPROXY to GOPROXY=https://proxy.golang.org
      8. Try pulling the package again: go get -v golang.org/x/exp/slices
      9. The package will be resolved successfully; meaning that once we request the package directly, it works.

      Reproduced on:

      Artifactory Cloud \ On Prem - 7.38.10

      GO Client - go1.18.2 darwin/amd64

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              omerb Omer Borshan
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: