-
-
Notifications
You must be signed in to change notification settings - Fork 75
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
Upgrade dependencies #253
Upgrade dependencies #253
Conversation
Can you run |
@mohammed90 That's what I have:
I've found a related issue created 4 months ago. This PR tries to resolve it but either there are some problems with it or there is no feedback from the developers, I don't know. We use |
We'll just have to ignore that deprecation for now. |
One last question: did you upgrade the transitive dependencies directly or via upgrading the direct deps? |
What I did is actually |
Then please revert the changes and only touch direct dependencies. Messing with the others could cause unforeseen trouble. Let the transitive deps be managed my the upstream. |
To clarify, this is due to how xcaddy works, using Go build tooling. If you use versions higher then Caddy in a plugin, then it forces Caddy to use those higher versions even if they might not actually be compatible (API breaks) so it could fail compilation. Only update the direct deps of the plugin to avoid trouble, and don't use higher versions than actually necessary (don't bump versions just for the sake of bumping). |
@mohammed90 @francislavoie Thank you for explanations. I reverted the changes and did
Build errors:
I don't know why |
- go mod tidy
- manually upgrade go, toolchain and direct dependencies - go mod tidy
- adjust build-test-check
I reverted again, edited direct dependencies manually leaving indirect ones for |
e9fecb7
to
39ca5b2
Compare
I'm not 100% sure of how it behaves when run without any arguments. It's best to be explicit. |
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.
Thanks for working on it!
This PR bumps Go to 1.22, removes Go 1.21 checks, adds Go 1.23 checks and upgrades dependencies.
I have a deprecation warning about
github.com/golang/protobuf v1.5.4 // indirect
. My IDE suggests thatgoogle.golang.org/protobuf
should be used instead. But I'm not sure whether we could fix it since it is an indirect requirement.