New to Kubepack? Please start here.
Scenario-4
This docs trying to explain the behavior of Pack
This section explain test-4.
If you look into this test’s dependency-list.yaml
file.
$ cat dependency-list.yaml
items:
- package: github.com/kubepack/kube-a
branch: test-4
- package: github.com/kubepack/kube-b
branch: test-4
Here, test-4 depends on two repositories.
Both repositories(kube-a and kube-b) depends on two different branch of kube-c. kube-a
depends on branch test-1
of kube-c
and kube-b
depends on master
branch of kube-c
.
To clarify, see image.
Now, when run $ pack dep -f . --v=10
command, pack
could not resolve dependencies. As, this dependencies contradict with each other.
Give below error.
$ pack dep -f . --v=10
I0108 15:58:18.241539 16369 logs.go:19] No versions of github.com/kubepack/kube-a met constraints:
master: Could not introduce github.com/kubepack/kube-a@master, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
dep-c: Could not introduce github.com/kubepack/kube-a@dep-c, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-1: Could not introduce github.com/kubepack/kube-a@test-1, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-10: Could not introduce github.com/kubepack/kube-a@test-10, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-2: Could not introduce github.com/kubepack/kube-a@test-2, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-3: Could not introduce github.com/kubepack/kube-a@test-3, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-4: Could not introduce github.com/kubepack/kube-a@test-4, as it has a dependency on github.com/kubepack/kube-c with constraint test-1, which has no overlap with existing constraint master from github.com/kubepack/kube-b@test-4
test-6: Could not introduce github.com/kubepack/kube-a@test-6, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-7: Could not introduce github.com/kubepack/kube-a@test-7, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.
test-8: Could not introduce github.com/kubepack/kube-a@test-8, as it is not allowed by constraint test-4 from project github.com/kubepack/pack/_testdata/test-4.