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

unable to deduce repository and source type for #1551

Closed
rzajac opened this issue Jan 21, 2018 · 6 comments
Closed

unable to deduce repository and source type for #1551

rzajac opened this issue Jan 21, 2018 · 6 comments

Comments

@rzajac
Copy link

rzajac commented Jan 21, 2018

I'm trying to use dep for the repository which is located on private bitbucket instance. My Gopkg.toml file looks like this:

[[constraint]]
  branch = "master"
  name = "kb.***.net/plg/box"
  source = "git@kb.***.net:7999/plg/box.git"

The name is set to string I use in imports and source is where the code actually resides. My dep version is v0.3.2-211-g015a7570

When I run below command I get this error:

$ dep ensure -v
The following issues were found in Gopkg.toml:

  ✗ unable to deduce repository and source type for "kb.***.net/plg/box": unable to read metadata: go-import metadata not found

ProjectRoot name validation failed

Not really sure what I'm doing wrong?

@zigang93
Copy link

macos?
I think i have same issue as you #1548

@rzajac
Copy link
Author

rzajac commented Jan 22, 2018

I was in fact on macos but I just tried it on Linux with the same error message.

@darkowlzz
Copy link
Collaborator

@rzajac Hi, I'm not sure if it would work because I've never done it myself, but can you try changing as per #411 (comment) and see if it works?

@rzajac
Copy link
Author

rzajac commented Jan 22, 2018

@darkowlzz Hi, I tried to change Gopkg.toml to:

[[constraint]]
  branch = "master"
  name = "kb.***.net/plg/box.git"
  source = "ssh://kb.***.net:7999/plg/box"

as you suggested but I still get an error:

Solving failure: unable to deduce repository and source type for "ssh://kb.***.net:7999/plg/box": unable to read metadata: unable to fetch raw metadata: failed HTTP request to URL "http://kb.***.net:7999/plg/box?go-get=1": Get http://kb.***.net:7999/plg/box?go-get=1: net/http: HTTP/1.x transport connection broken: malformed HTTP response "SSH-2.0-SSHD-UNKNOWN"

I also tried with source set to ssh://git@kb.***.net:7999/plg/box with the same result.

@sdboyer
Copy link
Member

sdboyer commented Jan 26, 2018

i guess that (private?) bitbucket doesn't implement go-get metadata correctly. unfortunately, that means you're blocked by #860 😢

we really need a whole docs section for dealing with these problems...

@sdboyer
Copy link
Member

sdboyer commented Jan 26, 2018

(closing, as this is effectively a dupe of #860)

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

4 participants