- Notifications
You must be signed in to change notification settings - Fork25
modules in vendor/ diverge from requirements #197
Description
I tried to build webboot with Go 1.16 and ran into some issues.
First I just did the same as before:cd cmds/webboot/; go build .
That errored, it would require a Go module.
Then I converted webboot to a Go module -go mod init
gave thego.{mod,sum}
files as expected.
However,go mod vendor
yields:
go: finding module for package github.com/u-root/NiChrome/pkg/wpa/passphrasego: finding module for package github.com/gizak/termui/v3go: finding module for package github.com/u-root/u-root/pkg/boot/utilgo: finding module for package github.com/gizak/termui/v3/widgetsgo: found github.com/gizak/termui/v3 in github.com/gizak/termui/v3 v3.1.0go: found github.com/gizak/termui/v3/widgets in github.com/gizak/termui/v3 v3.1.0go: found github.com/u-root/NiChrome/pkg/wpa/passphrase in github.com/u-root/NiChrome v0.0.0-20190815003313-250f4770a25bgo: finding module for package github.com/u-root/u-root/pkg/boot/utilgithub.com/u-root/webboot/pkg/bootiso imports github.com/u-root/u-root/pkg/boot/util: module github.com/u-root/u-root@latest found (v7.0.0+incompatible), but does not contain package github.com/u-root/u-root/pkg/boot/util
Indeed,pkg/bootiso/bootiso.go
importsgithub.com/u-root/u-root/pkg/boot/util
, which is not invendor/
. The current u-root version that is vendored is something older. I don't understand yet why webboot could build with Go 1.15. I assume it just looked at my~/go/src/github.com/u-root/u-root
directory instead ofvendor/
(although it shouldn't, as I understand it..?).
I attempted an upgrade thusly, and rango get -u github.com/u-root/u-root@master
, which errors:
go get: github.com/u-root/u-root@0b4edb935d5b9b58fccfa8b2c1fccfd17a831366 (v0.0.0-20210524171041-0b4edb935d5b) requires github.com/u-root/u-root@v7.0.0+incompatible, not github.com/u-root/u-root@0b4edb935d5b9b58fccfa8b2c1fccfd17a831366 (v0.0.0-20210524171041-0b4edb935d5b)
I do not understand what this means, and it's hard to search for hints.
Tryingdep ensure
ordep ensure --update
yields:
dep ensure --updateSolving failure: No versions of github.com/cenkalti/backoff met constraints: v4.1.0: Could not introduce github.com/cenkalti/backoff@v4.1.0, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v4.0.2: Could not introduce github.com/cenkalti/backoff@v4.0.2, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.)... -- ( repetitive output omitted here ) -- v2.1.0: Could not introduce github.com/cenkalti/backoff@v2.1.0, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v2.0.0: Could not introduce github.com/cenkalti/backoff@v2.0.0, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v1.1.0: Could not introduce github.com/cenkalti/backoff@v1.1.0, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v1.0.0: Could not introduce github.com/cenkalti/backoff@v1.0.0, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v4: Could not introduce github.com/cenkalti/backoff@v4, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) development: Could not introduce github.com/cenkalti/backoff@development, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) master: Could not introduce github.com/cenkalti/backoff@master, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v2: Could not introduce github.com/cenkalti/backoff@v2, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.) v3: Could not introduce github.com/cenkalti/backoff@v3, as its subpackage github.com/cenkalti/backoff/v4 is missing. (Package is required by github.com/u-root/u-root@master.)
Any idea would be welcome.