Skip to content
This repository was archived by the owner on Sep 9, 2020. It is now read-only.

Error: unable to read metadata: go-import metadata not found #1406

Closed
aksaha2311 opened this issue Nov 28, 2017 · 2 comments
Closed

Error: unable to read metadata: go-import metadata not found #1406

aksaha2311 opened this issue Nov 28, 2017 · 2 comments

Comments

@aksaha2311
Copy link

What version of dep are you using (dep version)?

v0.3.2-102-g91650f0c

What dep command did you run?

dep ensure -v

What did you expect to see?

No error message in terminal

What did you see instead?

The following issues were found in Gopkg.toml:

✗ unable to deduce repository and source type for
"github.wdf.corp/shp-access/shp-uam-core-svc/jobserver": unable to read metadata: go-import metadata not found

ProjectRoot name validation failed

Gopkg.toml contains

[[constraint]]
  name = "github.com/gorilla/mux"
  version = "1.5.0"

[[constraint]]
  name = "github.com/gorilla/websocket"
  version = "1.2.0"

[[constraint]]
  branch = "master"
  name = "github.com/auth0/go-jwt-middleware"

[[constraint]]
  branch = "develop"
  name = "github.wdf.corp/shp-accessmanagement/shp-uam-core-svc/jobserver"
@aksaha2311 aksaha2311 changed the title go-import metadata not found Error: unable to read metadata: go-import metadata not found Nov 28, 2017
@mspiegel
Copy link

Possible duplicate of #1322

@sdboyer
Copy link
Member

sdboyer commented Nov 30, 2017

hi! ugh, sorry, but unfortunately this is a well-known problem with GHE (which i'm assuming is what that name corresponds to) - they don't implement go-get metadata correctly for anything other than packages at the root of a repository. there's nothing dep can really do about that. this is all discussed at length in #174 (and i'm closing this as a dup of that)

once we get a fix in place for #860 you'll be able to circumvent this by setting a source field, but the ideal fix would be for github to fix their implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants