bitter-ability-32190
11/09/2022, 6:27 PM<http://immutable_inputs.rs|immutable_inputs.rs>
to store
, and I believe I've updated all references, but I get the very context-free:
$ MODE=debug ./pants --keep-sandboxes=always fmt src/python/pants/backend/python/util_rules/pex.py
fatal: Cannot open 'src/rust/engine/process_execution/src/immutable_inputs.rs': No such file or directory
bitter-ability-32190
11/09/2022, 6:27 PM./cargo clean
bitter-ability-32190
11/09/2022, 6:28 PMprocess_execution/src/lib.rs
no longer has pub mod immutable_inputs;
witty-crayon-22786
11/09/2022, 6:43 PMset -ex
in pants
and the cargo
script? it could be the scripts insteadbitter-ability-32190
11/09/2022, 6:44 PMerror: fields `store` and `contents` are never read
--> fs/store/src/immutable_inputs.rs:21:3
|
20 | struct Inner {
| ----- fields in this struct
21 | store: Store,
| ^^^^^
...
26 | contents: Mutex<HashMap<Digest, Arc<OnceCell<PathBuf>>>>,
| ^^^^^^^^
|
note: the lint level is defined here
--> fs/store/src/lib.rs:4:9
|
4 | #![deny(warnings)]
| ^^^^^^^^
= note: `#[deny(dead_code)]` implied by `#[deny(warnings)]`
error: associated function `path` is never used
--> fs/store/src/immutable_inputs.rs:58:12
|
58 | async fn path(&self, directory_digest: DirectoryDigest) -> Result<PathBuf, StoreError> {
| ^^^^
error: associated function `local_paths` is never used
--> fs/store/src/immutable_inputs.rs:121:23
|
121 | pub(crate) async fn local_paths(
| ^^^^^^^^^^^
bitter-ability-32190
11/09/2022, 6:44 PMwitty-crayon-22786
11/09/2022, 6:45 PMwitty-crayon-22786
11/09/2022, 6:45 PMcargo
bitter-ability-32190
11/09/2022, 6:45 PMGood call:set -ex
build-support/bin/rust/calculate_engine_hash.sh
seems ot be the culrpitwitty-crayon-22786
11/09/2022, 6:46 PM./cargo check -p engine
until you get your changes made… it’s a much faster validation (because it doesn’t actually generate code)witty-crayon-22786
11/09/2022, 6:46 PMbitter-ability-32190
11/09/2022, 6:47 PMbuild-support/bin/rust/calculate_engine_hash.sh
might not be delete-friendlywitty-crayon-22786
11/09/2022, 6:47 PM./pants
when making those kinds of changes.bitter-ability-32190
11/09/2022, 6:50 PMbitter-ability-32190
11/09/2022, 6:50 PMbitter-ability-32190
11/09/2022, 7:10 PMpub(crate)
did it 😛