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

bump dependencies #29

Merged
merged 3 commits into from
May 10, 2024
Merged

Conversation

pohly
Copy link
Contributor

@pohly pohly commented May 8, 2024

go: upgraded golang.org/x/exp v0.0.0-20230807204917-050eac23e9de => v0.0.0-20240506185415-9bf2ced13842
go: upgraded golang.org/x/mod v0.14.0 => v0.17.0
go: upgraded golang.org/x/sync v0.5.0 => v0.7.0
go: upgraded golang.org/x/tools v0.16.1 => v0.21.0

This fixes (at least for me) a crash when checking csi-lib-utils when using Kubernetes 1.30 there

Fixes: #28

It also bumps the Go version in go.mod to 1.22.2. This turned out be necessary because of golang/go#67282.

It is unclear whether building logtools with Go < 1.22 still works. The GitHub actions failed to install older Go without any error message.

cc @jsafrane @bells17

go: upgraded golang.org/x/exp v0.0.0-20230807204917-050eac23e9de => v0.0.0-20240506185415-9bf2ced13842
go: upgraded golang.org/x/mod v0.14.0 => v0.17.0
go: upgraded golang.org/x/sync v0.5.0 => v0.7.0
go: upgraded golang.org/x/tools v0.16.1 => v0.21.0

This fixes (at least for me) a crash when checking csi-lib-utils when using
Kubernetes 1.30 there (kubernetes-sigs#28).
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@k8s-ci-robot k8s-ci-robot added approved Indicates a PR has been approved by an approver from all required OWNERS files. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels May 8, 2024
@k8s-ci-robot
Copy link
Contributor

This issue is currently awaiting triage.

If logtools contributors determine this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

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.

@k8s-ci-robot k8s-ci-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. labels May 8, 2024
@pohly pohly mentioned this pull request May 8, 2024
@pohly pohly changed the title bump dependencies WIP: bump dependencies May 8, 2024
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 8, 2024
@pohly pohly changed the title WIP: bump dependencies bump dependencies May 10, 2024
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 10, 2024
@pohly pohly force-pushed the dependency-update branch 2 times, most recently from 5df9f4f to 6351c22 Compare May 10, 2024 10:01
The newer version is required when checking packages which need Go 1.22.
From a csi-lib-utils CI run with Go 1.22.2 in the PATH and Kubernetes 1.30
in vendor:

   /home/prow/go/src/github.com/kubernetes-csi/csi-lib-utils/vendor/k8s.io/apimachinery/pkg/api/resource/amount.go:17:1: package requires newer Go version go1.22

This feels like a workaround and raises the question whether this has to be
done for each new Go release. Discussed in
golang/go#67282.

It is unclear whether building with older Go releases still works. The GitHub
workflow failed while installing the older Go, without any error message.
@k8s-ci-robot k8s-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels May 10, 2024
@pohly
Copy link
Contributor Author

pohly commented May 10, 2024

@bells, @jsafrane: this is ready for LGTM.

I can tag a release directly afterwards and then update to that in csi-lib-utils.

@jsafrane
Copy link

/lgtm

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label May 10, 2024
@bells17
Copy link

bells17 commented May 10, 2024

/lgtm

@k8s-ci-robot k8s-ci-robot merged commit c99b003 into kubernetes-sigs:main May 10, 2024
4 checks passed
@pohly
Copy link
Contributor Author

pohly commented May 10, 2024

Building with older Go still works:

$ PATH=/nvme/gopath/go-1.21.0/bin/:$PATH go install sigs.k8s.io/logtools/logcheck@main
go: downloading sigs.k8s.io/logtools v0.8.2-0.20240510103400-c99b00396295
go: sigs.k8s.io/logtools@v0.8.2-0.20240510103400-c99b00396295 requires go >= 1.22; switching to go1.22.3
go: downloading go1.22.3 (linux/amd64)
go: downloading golang.org/x/tools v0.21.0
go: downloading golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
go: downloading golang.org/x/sync v0.7.0
go: downloading golang.org/x/mod v0.17.0
$ PATH=/nvme/gopath/go-1.20.0/bin/:$PATH go install sigs.k8s.io/logtools/logcheck@main
go: downloading sigs.k8s.io/logtools v0.8.2-0.20240510103400-c99b00396295
go: downloading golang.org/x/tools v0.21.0
go: downloading golang.org/x/exp v0.0.0-20240506185415-9bf2ced13842
go: downloading golang.org/x/sync v0.7.0
go: downloading golang.org/x/mod v0.17.0

Go 1.20 simply builds it.

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. needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Panic in csi-lib-utils CI
4 participants