-
Notifications
You must be signed in to change notification settings - Fork 47
chore(*): Unpin tokio #7951
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
chore(*): Unpin tokio #7951
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 6 Skipped Deployments
|
Could you give some more context why the unpinning is necessary given the problem it may cause? |
It's not necessary, but it does allow library users to be more flexible with their tokio version. Since they don't care about simtests, it doesn't matter if they resolve a higher patch version. |
@@ -348,7 +348,7 @@ test-fuzz = "3.0.4" | |||
thiserror = "1.0.40" | |||
# tokio is defined at a specific version to support patching with iota-sim | |||
# Do not upgrade without updating https://github.com/iotaledger/iota-sim first | |||
tokio = "=1.46.1" | |||
tokio = "1.46.1" |
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.
Hmm, hmm. Does this mean that when any crate using tokio is updated to a newer version using a newer tokio version which technically could be compatible (from cargo's perspective), then they can potentially force this version to be elevated as well and CI breaks?
In which case from our side the only way to resolve the issue is to pin the version again or downgrade the offending library?
Just thinking aloud mostly 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.
No. It just means that if we accidentally update the version in the lock file (this can only be the patch version because tokio is past 1.0.0) then our CI will break in that PR. It's not very serious but it's annoying.
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.
Then it is ok.
Description
Unpins the
tokio
version.NOTE: This means that simtests will be broken if the lock file tokio version is ever updated because of a new patch version.