Repository navigation
rust: hash the workspace manifest, lockfile and cargo config above path, anchored at the root - #62
Open
ndbroadbent wants to merge 1 commit into
Open
ndbroadbent wants to merge 1 commit into
ndbroadbent wants to merge 1 commit into
Conversation
…above path, anchored at the root
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #37, plus a false skip the coordinator found while reviewing #54.
False skip
With
path: crates/core, the rust module hashed only files insidecrates/core. But cargo reads the workspace's rootCargo.toml(profiles,[workspace.dependencies]) andCargo.lock, plus every.cargo/config.tomlfrom the crate up to the root. rustup reads the nearest toolchain file. A profile or config change above the crate therefore skipped green.The module now adds
Cargo.toml,Cargo.lock,rust-toolchain,rust-toolchain.toml,.cargo/config.tomland.cargo/configinpathand in every directory above it (src/modules/paths.rs:dirs_up,anchored,in_dirs_up). It still adds**/Cargo.tomlunderpath.#37
Files at the root are anchored there (
/Cargo.lock,/rust-toolchain.toml), so withpath: .a nested crate's own lockfile is no longer an input. That one was over-inclusive, not a false skip.Tests
a_crate_below_the_root_reruns_when_files_above_it_change. It covers the rootCargo.toml(a profile),Cargo.lock,.cargo/config.toml,crates/.cargo/config.tomland a new rootrust-toolchain.toml. It failed first on main, at the rootCargo.toml.pathshelpers.#54's node
inputs.rshas its own copy ofdirs_upandanchored. Whichever of the two merges second, I'll switch node topaths.rs.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.