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

Can't download go module through github remote

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Deferred
    • Affects Version/s: 7.17.5
    • Fix Version/s: None
    • Component/s: Go
    • Labels:
      None
    • Environment:

      Description

       

      go mod download -x k8s.io/klog/v2@v2.2.0
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.info
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.info: 200 OK (1.201s)
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.mod
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.mod: 404 Not Found (0.164s)
      go mod download: k8s.io/klog/v2@v2.2.0: reading https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.mod: 404 Not Found
      

      After changing GOPROXY env. variable to GOPROXY="https://artifactory.domain.com/artifactory/api/go/go,direct" and disabling checksum checking because of RTFACT-21812 (GOSUMDB=off)

      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.info
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.info: 200 OK (0.037s)
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.mod
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.mod: 404 Not Found (0.414s)
      # get https://k8s.io/klog/v2?go-get=1
      # get https://k8s.io/klog/v2?go-get=1: 200 OK (0.214s)
      # get https://k8s.io/klog?go-get=1
      # get https://k8s.io/klog?go-get=1: 200 OK (0.359s)
      mkdir -p /home/user/go/pkg/mod/cache/vcs # git3 https://github.com/kubernetes/klog
      # lock /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12.lockmkdir -p /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12 # git3 https://github.com/kubernetes/klog
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git init --bare
      0.005s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git init --bare
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git remote add origin -- https://github.com/kubernetes/klog
      0.001s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git remote add origin -- https://github.com/kubernetes/klog
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git tag -l
      0.001s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git tag -l
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git ls-remote -q origin
      0.600s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git ls-remote -q origin
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' d738e55e1450a3219a8c244003042ba290711105 --
      0.002s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' d738e55e1450a3219a8c244003042ba290711105 --
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git fetch -f --depth=1 origin refs/tags/v2.2.0:refs/tags/v2.2.0
      0.946s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git fetch -f --depth=1 origin refs/tags/v2.2.0:refs/tags/v2.2.0
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' refs/tags/v2.2.0 --
      0.003s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git -c log.showsignature=false log -n1 '--format=format:%H %ct %D' refs/tags/v2.2.0 --
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git cat-file blob d738e55e1450a3219a8c244003042ba290711105:go.mod
      0.002s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git cat-file blob d738e55e1450a3219a8c244003042ba290711105:go.mod
      cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git cat-file blob d738e55e1450a3219a8c244003042ba290711105:v2/go.mod
      0.003s # cd /home/user/go/pkg/mod/cache/vcs/9d03197d57d7ba99bff017b23f39e0afaccb23500715ecb8cc2b4128a673bf12; git cat-file blob d738e55e1450a3219a8c244003042ba290711105:v2/go.mod
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.zip
      # get https://artifactory.domain.com/artifactory/api/go/go-github/k8s.io/klog/v2/@v/v2.2.0.zip: 200 OK (0.071s)
      

       

        Attachments

          Activity

              People

              Assignee:
              Unassigned
              Reporter:
              gryaznov Kirill Gryaznov (Inactive)
              Votes:
              2 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: