moby--moby/hack/validate
Sebastiaan van Stijn 325c3a457b
hack/vendor.sh: run "go mod tidy" before vendoring
The hack/vendor.sh script is used to (re)vendor dependencies. However, it did
not run `go mod tidy` before doing so, wheras the vendor _validation_ script
did.

This could result in vendor validation failing if go mod tidy resulted in
changes (which could be in `vendor.sum`).

In "usual" situations, this could be easily done by the user (`go mod tidy`
before running `go mod vendor`), but due to our (curent) uses of `vendor.mod`,
and having to first set up a (dummy) `go.mod`, this is more complicated.

Instead, just make the script do this, so that `hack/vendor.sh` will always
produce the expected result.

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2022-02-05 11:25:23 +01:00
..
.swagger-yamllint
.validate hack: no need to git fetch in CI 2019-02-05 02:54:50 +00:00
all run shfmt 2020-03-03 12:27:49 +09:00
changelog-date-descending hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
changelog-well-formed hack: fix mixed tabs/spaces for indentation 2019-08-02 15:58:33 +02:00
dco run shfmt 2020-03-03 12:27:49 +09:00
default hack/validate: skip DCO in "default" 2021-05-17 15:10:50 +02:00
default-seccomp run shfmt 2020-03-03 12:27:49 +09:00
deprecate-integration-cli run shfmt 2020-03-03 12:27:49 +09:00
golangci-lint run shfmt 2020-03-03 12:27:49 +09:00
golangci-lint.yml hack: remove a workaround for go-tools 2021-12-27 10:05:01 -08:00
pkg-imports run shfmt 2020-03-03 12:27:49 +09:00
shfmt Fixup libnetwork lint errors 2021-06-01 23:48:32 +00:00
swagger run shfmt 2020-03-03 12:27:49 +09:00
swagger-gen run shfmt 2020-03-03 12:27:49 +09:00
toml validate/toml: switch to github.com/pelletier/go-toml 2021-04-02 16:08:17 +02:00
vendor hack/vendor.sh: run "go mod tidy" before vendoring 2022-02-05 11:25:23 +01:00