-
Notifications
You must be signed in to change notification settings - Fork 74
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
Bump golang to 1.23.1 #261
Conversation
Welcome @huww98! |
Hi @huww98. Thanks for your PR. I'm waiting for a kubernetes-csi member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
BTW, do you think we should My opinion is adding GOTOOLCHAIN=local, so that build will fail if the go version specified in prow.sh is lower than go.mod. This should keep maximum reproducibility of CI result. go command will only upgrade, but not downgrade toolchain. |
/cc @xing-yang @jsafrane |
/ok-to-test |
What approach does the main kubernetes/kubernetes use? Is there anything we could copy? |
Maybe we can copy from kubernetes/kubernetes#120279 In short, k/k use:
So maybe such a simple # Ensure we use the desired version of the Go tools, then run command given as argument.
# Empty parameter uses the already installed Go. In Prow, that version is kept up-to-date by
# bumping the container image regularly.
run_with_go () {
local version
version="$1"
shift
if [ "$version" ]; then
version=go$version
else
version=local
fi
GOTOOLCHAIN=$version run "$@"
} and it works like this:
Please see #262 |
Manually downloading the right toolchain archive pre-dates the download mechanism in the Go toolchain itself. Nowadays using the toolchain to download the desired version is the right way to go. |
Can we get this PR merged? Or should we fix the (seems unrelated) CI failure first? |
We need the CI to be green before merge to make sure this PR does not break anything. |
I am staring at the CI logs and they don't make much sense to me. |
I suspect it fails because one or both repos are not completely present locally:
I'm not sure yet how to change this - will ask on Slack. |
https://git-scm.com/docs/git-upload-pack So I think set GIT_NO_LAZY_FETCH=0 should fix this. Update: I think I've fixed this in the latest commit. Let's wait for it to turn green. |
Without allowing to fetch missing file content, "git subtree pull" fails: remote: warning: lazy fetching disabled; some objects may not be available remote: fatal: could not fetch b18c53581356c52a220a2baf1c8cf3fd9c57dda6 from promisor remote error: git upload-pack: git-pack-objects died with error. fatal: git upload-pack: aborting due to possible repository corruption on the remote side. remote: aborting due to possible repository corruption on the remote side.� fatal: protocol error: bad pack header
Almost, please also revendor. |
@huww98: The following test failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
/approve
I think the whole "select Go version" logic needs further work, but in the meantime we can simply bump it.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: huww98, pohly 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 |
external-snapshotter is already using 1.23.1 in go.mod