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

error "non-constant format string" with go 1.24 #281

Open
yongruilin opened this issue Feb 1, 2025 · 1 comment · May be fixed by #282
Open

error "non-constant format string" with go 1.24 #281

yongruilin opened this issue Feb 1, 2025 · 1 comment · May be fixed by #282
Assignees

Comments

@yongruilin
Copy link
Contributor

When trying to run test locally but got error

# sigs.k8s.io/structured-merge-diff/v4/typed
typed/validate.go:160:17: non-constant format string in call to sigs.k8s.io/structured-merge-diff/v4/typed.errorf
typed/validate.go:196:17: non-constant format string in call to sigs.k8s.io/structured-merge-diff/v4/typed.errorf
FAIL    sigs.k8s.io/structured-merge-diff/v4/typed [build failed]

This is due to the update in go 1.24 golang/go#60529

Need to update the error return to address.

Ref:

@yongruilin yongruilin linked a pull request Feb 1, 2025 that will close this issue
@yongruilin
Copy link
Contributor Author

/assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant