-
Notifications
You must be signed in to change notification settings - Fork 2.3k
chore: bump to go 1.24 #5920
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
base: master
Are you sure you want to change the base?
chore: bump to go 1.24 #5920
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
|
||
run: | ||
deadline: 5m | ||
go: '1.22' | ||
go: '1.24' | ||
|
||
linters: | ||
enable-all: true | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module sigs.k8s.io/kustomize/api | ||
|
||
go 1.22.7 | ||
go 1.24.3 | ||
|
||
require ( | ||
github.com/blang/semver/v4 v4.0.0 | ||
|
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -169,7 +169,7 @@ func (fl *FileLoader) New(path string) (ifc.Loader, error) { | |
} | ||
root, err := filesys.ConfirmDir(fl.fSys, fl.root.Join(path)) | ||
if err != nil { | ||
return nil, errors.WrapPrefixf(err, ErrRtNotDir.Error()) //nolint:govet | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Could you update the go runtime version in this PR while keeping only the minimum necessary changes to pass existing tests and lint checks? If needed, we could extract the lint-related changes in this PR into a separate PR and merge that one first. By keeping the go version bump PR simple, we'll make it easy to revert in case of any issues during upgrade. |
||
return nil, errors.WrapPrefixf(err, "%s", ErrRtNotDir.Error()) | ||
} | ||
if err = fl.errIfGitContainmentViolation(root); err != nil { | ||
return nil, err | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
module sigs.k8s.io/kustomize/cmd/config | ||
|
||
go 1.22.7 | ||
go 1.24.3 | ||
|
||
require ( | ||
github.com/go-errors/errors v1.4.2 | ||
|
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.
Please change to
go 1.24.0
tag in go.mod file.details: #5763 (comment)
However, for the Go runtime versions actually used like Dockerfiles or GitHub Actions, newer patch versions are safe to use, so always use the latest available version whenever possible.