Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update .go-version to 1.17.13 and go mod tidy #214

Merged
merged 2 commits into from
Aug 26, 2022

Conversation

spiffxp
Copy link
Member

@spiffxp spiffxp commented Aug 26, 2022

Related:

go install sigs.k8s.io/kubetest2/...@latest was failing for go 1.17, somehow deciding to pull in dependencies that require go >= 1.18 despite #207

go build ./... was refusing to build for go >= 1.17, saying that go mod tidy needed to be run first (see https://go.dev/ref/mod#go-mod-file-go for why)

The Makefile used as the entrypoint for all of this project's CI jobs uses the go version specified in .go-version so we were missing this failure mode. Added a go-version target which gets run as part of make verify to hopefully catch this in the future

@k8s-ci-robot k8s-ci-robot added do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels Aug 26, 2022
@k8s-ci-robot k8s-ci-robot requested a review from MushuEE August 26, 2022 00:06
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 26, 2022
go install sigs.k8s.io/kubetest2/...(at)latest was failing for go 1.17,
somehow deciding to pull in dependencies that require go >= 1.18

go build ./... was refusing to build for go 1.17, saying that go mod
tidy needed to be run first (see https://go.dev/ref/mod#go-mod-file-go
for why)

The Makefile used as the entrypoint for all of this project's CI jobs
uses the go version specified in .go-version so we were missing this
failure mode
opted to do this as a separate verify script instead of in
hack/build/setup-go.sh because:
- failures in that script are silent as far as `make` is concerned
- maybe there's a testing reason someone would want to explicitly
  try using an older version of go than is specified in go.mod
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/invalid-commit-message Indicates that a PR should not merge because it has an invalid commit message. label Aug 26, 2022
@MushuEE
Copy link
Contributor

MushuEE commented Aug 26, 2022

/lgtm
/approve

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 26, 2022
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: MushuEE, spiffxp

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 26, 2022
@k8s-ci-robot k8s-ci-robot merged commit bcebe18 into kubernetes-sigs:master Aug 26, 2022
@spiffxp spiffxp deleted the go1.17-followup branch August 26, 2022 17:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to go install kubetest2 with go 1.17
3 participants