Closed ooq closed 3 years ago
@ooq I think this is because of the change to the hack/dependencies.sh
script, the Kubernetes one does a lot more slicing and dicing of go.mod
so that PRs don't get blocked like this. Might I suggest we remove go mod tidy
?
@cjones-shopify Do you mean to remove it from hack/dependencies.sh
? Yesterday I looked, it seemed to be caused by go get -u gotest.tools/gotestsum
in ./hack/test.sh
updating go.mod
for gotestsum
's dependencies.
Maybe do another go mod vendor
after installing gotestsum
would fix this?
@cjones-shopify looks like go mod vendor
does make it happy. Would there be concerns with this approach?
One issue I do see is it might mess up my local vendor/modules.txt
which I have to manually stash.
Merging now to unblock PRs needing this test to pass. If there is a better fix, let's do so in a follow-up.
Our travis test fails because of
go.mod
andvendor/modules.txt
mismatch. The mismatch is introduced bygo get -u gotest.tools/gotestsum
during the testing setup. This command updatesgo.mod
but notvendor/modules.txt
.Fix is to add
go mod vendor
after downloadinggotestsum
.Alternative considered: configure
go get
to not updatego.mod
, but looks it's not possible (#27643).