Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-20933

Fetching Go dependency from sub-folder of git project fails

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.18.1
    • Fix Version/s: None
    • Component/s: golang
    • Labels:
      None

      Description

      Including a dependency that is in a sub-folder of a git project will fail in NXRM but works when pointing to Athens. In the below example the project that causes an issue is CRDB from https://github.com/cockroachdb/cockroach-go

      To reproduce create a simple go project with the following class. Set GOPROXY to point at NXRM and then build the project.

      package main
      
      import "github.com/gobuffalo/buffalo"
      
      func main() {
      	
      }
      
      

      This will result in the following error

      cannot load github.com/cockroachdb/cockroach-go/crdb: cannot find module providing package github.com/cockroachdb/cockroach-go/crdb
      

      NXRM throws the following exception

      2019-08-21 10:36:07,401+0000 WARN  [qtp1654297853-57]  *UNKNOWN org.sonatype.nexus.repository.view.handlers.ExceptionHandler - Invalid content: GET /github.com/cockroachdb/cockroach-go/@v/list: org.sonatype.nexus.repository.InvalidContentException: Content type could not be determined: github.com/cockroachdb/cockroach-go/@v/list
      2019-08-21 10:36:45,508+0000 INFO  [Check Status https://athens.azurefd.net]  *UNKNOWN org.sonatype.nexus.repository.httpclient.internal.HttpClientFacetImpl - Repository status for go-proxy-public-athens changed from AUTO_BLOCKED_UNAVAILABLE to AVAILABLE - reason n/a for n/a
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jstephens Joseph Stephens
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  tigCommentSecurity.panel-title