Uh oh!
There was an error while loading. Please reload this page.
vendor with go mod - #3387
Conversation
Codecov Report
@@ Coverage Diff @@## master #3387 +/- ##
=======================================
Coverage 56.35% 56.35% =======================================
Files 304 304 Lines 26830 26830 =======================================
Hits 15121 15121 Misses 10789 10789 Partials 920 920 |
AkihiroSuda
commented
Dec 10, 2021
Why is the filename |
Creating |
AkihiroSuda
commented
Dec 10, 2021
Thanks for explanation, could you add this background to the comment lines of |
errordeveloper
commented
Dec 10, 2021
Good idea! @crazy-max would you mind doing that please? I'll update moby/swarmkit#3046 also. |
crazy-max
commented
Dec 10, 2021
@errordeveloper Yes sure! |
thaJeztah
commented
Dec 10, 2021
FWIW: I recalled we also had #3139 pending, but that never was finished / completed. I recalled I had a branch on my machine (but it may have still been "work in progress", as it was a quick "let's rip the remaining bits out as well" frenzy). Removing those k8s bits also helps reducing the list of dependencies considerably, so I just rebased that branch, and opened a draft PR to see what it would look like; #3389 (and if CI succeeds 😂) |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
errordeveloper
commented
Dec 10, 2021
Looks like this is good to go! |
Uh oh!
There was an error while loading. Please reload this page.
thaJeztah
commented
Dec 13, 2021
Also opened docker/docker-ce-packaging#611 to do a quick check if the packaging scripts don't blow up 👍 |
Uh oh!
There was an error while loading. Please reload this page.
crazy-max
commented
Dec 14, 2021
Uh oh!
There was an error while loading. Please reload this page.
| if [ ! -x "$(command -v modvendor)" ]; then | ||
| echo "modvendor not found. Install with 'go install github.com/goware/modvendor@v0.5.0'" | ||
| exit 1 | ||
| fi |
There was a problem hiding this comment.
I'd recommend doing something similar to moby/swarmkit@a46370c, that way tools versions can be tracked in a separate go.mod file and will not interfere with actual runtime dependencies.
There was a problem hiding this comment.
Yep sounds better with go build tools, will make some changes.
There was a problem hiding this comment.
Hum will do that in a follow-up actually, there are other tools that would need the same behavior like goversioninfo.
errordeveloper
left a comment
There was a problem hiding this comment.
Looks good overall! Just a few nits.
caef84b to
fc57f10Comparedcd21b4 to
f49c568Compare| vendor.mod linguist-language=Go-Module | ||
| vendor.sum linguist-language=Go-Checksums |
There was a problem hiding this comment.
@errordeveloper Just stylish stuff you can add to match the proper language using gitattributes:
@crazy-max should we request a review from someone who can merge this? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| ./scripts/vendor validate | ||
| .PHONY: mod-outdated | ||
| mod-outdated: ## check outdated dependencies |
There was a problem hiding this comment.
This is not yet in use, correct? (more of a "local dependabot check")
There was a problem hiding this comment.
Yes this is only intended for local check
There was a problem hiding this comment.
Sample output:
$ DISABLE_WARN_OUTSIDE_CONTAINER=1 make mod-outdated
./scripts/vendor outdated
+ go-mod-outdated -update -direct
+ go list -mod=vendor -mod=readonly -modfile=vendor.mod -u -m -json all
+--------------------------------------+-----------------------------------------------------+------------------------------------+--------+------------------+
| MODULE | VERSION | NEW VERSION | DIRECT | VALID TIMESTAMPS |
+--------------------------------------+-----------------------------------------------------+------------------------------------+--------+------------------+
| github.com/containerd/console | v1.0.2 | v1.0.3 | true | true |
| github.com/containerd/containerd | v1.5.5 | v1.5.8 | true | true |
| github.com/creack/pty | v1.1.11 | v1.1.17 | true | true |
| github.com/docker/docker | v20.10.3-0.20210811141259-343665850e3a+incompatible | v20.10.12+incompatible | true | true |
| github.com/google/go-cmp | v0.2.0 | v0.5.6 | true | true |
| github.com/mitchellh/mapstructure | v1.3.2 | v1.4.3 | true | true |
| github.com/moby/buildkit | v0.8.2-0.20210615162540-9f254e18360a | v0.9.3 | true | true |
| github.com/opencontainers/image-spec | v1.0.1 | v1.0.2 | true | true |
| github.com/spf13/cobra | v1.1.3 | v1.3.0 | true | true |
| github.com/tonistiigi/fsutil | v0.0.0-20210609172227-d72af97c0eaf | v0.0.0-20211208191308-f95797418e48 | true | true |
| github.com/tonistiigi/go-rosetta | v0.0.0-20200727161949-f79598599c5d | v0.0.0-20201102221648-9ba854641817 | true | true |
| golang.org/x/sys | v0.0.0-20210823070655-63515b42dcdf | v0.0.0-20211216021012-1d35b9e2eb4e | true | true |
| golang.org/x/term | v0.0.0-20201117132131-f5c789dd3221 | v0.0.0-20210927222741-03fcf44c2211 | true | true |
| golang.org/x/text | v0.3.3 | v0.3.7 | true | true |
| k8s.io/api | v0.16.9 | v0.23.0 | true | true |
| k8s.io/apimachinery | v0.16.9 | v0.23.0 | true | true |
| k8s.io/client-go | v0.16.9 | v1.5.2 | true | true |
+--------------------------------------+-----------------------------------------------------+------------------------------------+--------+------------------+
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
crazy-max
commented
Jan 12, 2022
PTAL @tonistiigi@silvin-lubecki@tiborvass thanks |
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
thaJeztah
commented
Jan 13, 2022
let's bring this one in |


follow-up #3308
vendoring with go modules with nearly zero diff (ref moby/swarmkit#3046).
cc @thaJeztah@errordeveloper
Signed-off-by: CrazyMax crazy-max@users.noreply.github.com