-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Discuss: not update Cargo.toml minor/patch version? #14962
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
Comments
Another reason we always increase Cargo.toml versions of submodules is that we don't test DataFusion building with other versions. For example, if one of the dependencies like We don't spend much time
I think having a wider version range would be valuable and make DataFusion easier to use by downstream projects as well. The key thing is to figure out how to test that the ranges encoded in Cargo.toml are actually accurate |
There's a flag In iceberg-rust, we currently use it to do MSRV test together with min version deps test (some deps cannot be built on MSRV in newer toolchain versions ) |
@logan-keede filed a related ticket / discussion |
Hi, I see we've checked in
Cargo.lock
recently #14135, and I think it's good!But I'm not sure whether this was discussed: what about not updating
Cargo.toml
(for minor/patch versions), but onlyCargo.lock
?From the discussion, I can see the main motivation is to have reproducible build (agains near latest dependencies) in CI. To achieve this,
Cargo.lock
(updated by bot) is enough.Whether or not updating
Cargo.toml
means whether or not force downstream users to use only the latest dependency versions. Personally I prefer a more tolerable version range, so that downstream can update deps 1 by 1 and audit each dep's changes.FYI in iceberg-rust, we have similar discussions on this topic, and we prefer to have a wider range of versions support, to allow users to choose their dep version (by not updating Cargo.toml too often) https://lists.apache.org/thread/pv3onm41229lovs1odqg94fdc60wcp73
The text was updated successfully, but these errors were encountered: