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

Alternate location for constraints doesn't accept 'file://' #1505

Closed
hasufell opened this issue Jan 4, 2018 · 1 comment
Closed

Alternate location for constraints doesn't accept 'file://' #1505

hasufell opened this issue Jan 4, 2018 · 1 comment

Comments

@hasufell
Copy link

hasufell commented Jan 4, 2018

Git perfectly supports cloning repositories from local directories. dep doesn't.

Gopkg.toml has the following contents:

[[constraint]]
  name = "github.com/someones/repo"
  branch = "testing"
  source = "file:///path/to/a/local/repo"

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

v0.3.2-187-g5e8ecaa9

What dep command did you run?

dep ensure

What did you expect to see?

success

What did you see instead?

Solving failure: "file:///path/to/a/local/repo" is not a valid import path

@sdboyer
Copy link
Member

sdboyer commented Jan 10, 2018

hi! thanks for the issue.

unfortunately, this is an intentional design choice - for now. there's an explanation of the relevant considerations in #935 (comment) .

(closing as dup)

@sdboyer sdboyer closed this as completed Jan 10, 2018
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

2 participants