Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Simplify/improve verify-vendor.sh
`verify-vendor.sh` compares the content of the `vendor` directory after running `make vendor` with a copy which was made before running `make vendor`. This does not catch changes to go.mod/go.sum made by `go mod tidy` which we forgot to commit. This commit uses `git diff --exit-code` instead of running `diff` against the vendor directory. This will catch all uncommitted changes, which should be fine when `make vendorcheck` is run. Using `git diff` instead of `diff` allows to remove quite some code from `verify-vendor.sh` This fixes crc-org#4133
- Loading branch information