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

Artifactory Go remote repository not proxying requests to @latest URLs

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: 4 - Normal
    • Resolution: Done
    • Affects Version/s: 6.20.0, 7.6.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Severity:
      Medium

      Description

      Trying to resolve a Go package from Artifactory Go remote repository with url = https://proxy.golang.org, ends in 404.

       

      Steps to reproduce:

      • Create a go virtual repo called "go" with "go-external" as an included repository.
      • export GOPROXY=https://<artifactory-url>/api/go/go,direct
      • export GOPRIVATE=none
      • export GONOPROXY=none
      • export GONOSUMDB=none
      • mkdir gotest
      • cd gotest
      • go mod init gotest
      • create gotest.go with below contents
        package main
        import (    
            "syscall"    
            "golang.org/x/crypto/ssh/terminal"
        )
        func main() {    
            _, _ := terminal.ReadPassword(int(syscall.Stdin))
        }
        
      • run "go build ./..."

       You are able to pull the packages directly from https://proxy.golang.org by setting the go proxy to:

      • run "go build ./..."

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tomern Tomer Nir
              Reporter:
              ohadl Ohad Levy
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Sync Status

                  Connection: RTFACT Sync
                  RTMID-22878 -
                  SYNCHRONIZED
                  • Last Sync Date: