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

Constraint source fields does not work with non-existing packages #990

Closed
sttts opened this issue Aug 11, 2017 · 2 comments
Closed

Constraint source fields does not work with non-existing packages #990

sttts opened this issue Aug 11, 2017 · 2 comments

Comments

@sttts
Copy link

sttts commented Aug 11, 2017

I am trying to require a repository that does not exist yet. To make that work I specify an existing repository in the source of a corresponding constraint. It looks like this does not help to make dep ensure work:

in the following example k8s.io/kube-gen is not existing yet. But github.com/deads2k/fake-kube-gen does. Yet, it does not work:

$ deb ensure -v
The following errors occurred while deducing packages:
  * "k8s.io/kube-gen": unable to deduce repository and source type for "k8s.io/kube-gen": unable to read metadata: go-import metadata not found

validateParams: could not deduce external imports' project roots

If I switch the requirement to an existing repo, the source constraints works fine.

Gopkg.toml:

required = [
  "github.com/openshift/origin/pkg/template/apis/template",
  "github.com/openshift/origin/pkg/template/apis/template/v1",
  "k8s.io/kube-gen",
]

[[constraint]]
  name = "k8s.io/kube-gen"
  branch = "master"
  source = "github.com/deads2k/fake-kube-gen"
@sdboyer
Copy link
Member

sdboyer commented Aug 11, 2017

good morning!

I am trying to require a repository that does not exist yet.

for a second i thought we were doing some kind of Sartrean dependency lemma, and now i can't stop wondering about the hermeneutics of dep 😆❤️

in the following example k8s.io/kube-gen is not existing yet. But github.com/deads2k/fake-kube-gen does.

see #860 😄

@sttts
Copy link
Author

sttts commented Aug 11, 2017

:) Looks like #860 describes the same issue. Closing.

@sttts sttts closed this as completed Aug 11, 2017
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