Repository navigation
Check in Cargo.lock - #2482
Check in Cargo.lock#2482
Conversation
LucaCappelletti94
left a comment
There was a problem hiding this comment.
To make dependency updates reliably visible in review, maybe we should use --locked in the CI? The sqlparser_bench job uses an independent manifest, so it likely needs its own committed lockfile, or possibly better a workspace integration.
| @@ -0,0 +1,412 @@ | |||
| # This file is automatically @generated by Cargo. | |||
| # It is not intended for manual editing. | |||
| version = 4 | |||
There was a problem hiding this comment.
At this time https://github.com/apache/datafusion-sqlparser-rs/blob/main/.tool-versions still specifies Rust 1.75, and version = 4 is only supported from 1.78. I suspect that the current CI misses this because it tests only stable, beta, and nightly, and not specifically 1.75.
I am not sure whether here we would want to either bump .tool-versions or downgrade the version of the Cargo.lock.
|
thanks @LucaCappelletti94 -- I defer to your judgement for such changes. Maybe we should just punt on thsi PR until we have some issue due to dependencies 🤷 |
I had to Google what |
|
Sounds good -- thank you |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2482 +/- ##
=======================================
Coverage 80.96% 80.96%
=======================================
Files 42 42
Lines 33373 33373
Branches 33373 33373
=======================================
Hits 27022 27022
Misses 2789 2789
Partials 3562 3562 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
@alamb I pushed the follow-ups from my review to your branch.
One consequence worth knowing is that the daily LMK whether all looks good to you. |
alamb
left a comment
There was a problem hiding this comment.
Thanks @LucaCappelletti94 -- other than the change to tool version this makes sense to me
| @@ -1 +1 @@ | |||
| rust 1.75.0 No newline at end of file | |||
| rust 1.88.0 No newline at end of file | |||
There was a problem hiding this comment.
Does this change the "msrv" of the crate (the minimum supported rust version) or just the versions that run the tests?
There was a problem hiding this comment.
The .tool-versions bump leaves the crate's MSRV untouched. The crate declares no rust-version in Cargo.toml (maybe we should), so cargo enforces no MSRV for downstream users, and downstream builds resolve their own dependency graph without reading our Cargo.lock. CI does not read .tool-versions either.
The file only selects the toolchain that asdf and mise install for local development in this checkout.
There was a problem hiding this comment.
The file only selects the toolchain that asdf and mise install for local development in this checkou
I thought it changes the version of rust used for clippy, etc
So that by changing this we will implicitly start testing with a newer version of rust 🤔
There was a problem hiding this comment.
No, those tools go by the version specified in CI, which currently is:
There was a problem hiding this comment.
ok, I think i was confused with rust-toolchain.toml (e.g. https://github.com/apache/arrow-rs/blob/main/rust-toolchain.toml). Sorry about that
|
Looks ready to me @LucaCappelletti94 -- thank you |
Which issue does this PR close?
N/A
Rationale for this change
Checking in
Cargo.lockgives CI reproducible builds and makes dependency updates visible in review, per the current Cargo guidance which now recommends committing the lockfile for libraries as well.What changes are included in this PR?
Cargo.lockfrom.gitignoreCargo.lockgenerated withcargo update(all 46 packages locked to the latest semver-compatible versions; noCargo.tomlchanges needed)Are these changes tested?
cargo test --all-featurespasses (22/22 suites, 0 failures).Are there any user-facing changes?
No. This only affects local development and CI of this repository; downstream users of the published crate are unaffected.