shy-architect-61291
02/15/2023, 11:17 PMdocker
out to its own crate. However, there are calls in the <http://docker_tests.rs|docker_tests.rs>
file that reference the <http://local_tests.rs|local_tests.rs>
file from process_execution
crate. Despite having scoped the <http://lib.rs|lib.rs>
file and Cargo.toml
correctly (as indicated by other dependencies that check out), this will fail /.cargo test -p docker
with a
use process_execution::local_tests::named_caches_and_immutable_inputs
^^^^^^^^^^^ could not find `local_tests` in `process_execution`
Process::new(owned_string_vec(&["/bin/echo", "-n", "foo"]))
^^^ function or associated item not found in `Process`
error. For reference, relevant code snippets:
// in docker/Cargo.toml
[dependencies]
...
process_execution = { path = "../process_execution" }
// in process_execution/lib.rs
pub mod local;
#[cfg(test)]
pub mod local_tests
// also an import problem:
pub struct Process { /*..*/ };
impl Process {
#[cfg(test)
pub fn new()....
}
Is there something special about test configurations that prevent cross-crate references?witty-crayon-22786
02/15/2023, 11:19 PM<http://docker_tests.rs|docker_tests.rs>
that uses named_caches_and_immutable_inputs
… AFAICT, it was copy-pasta’d from the local runner’s testsshy-architect-61291
02/15/2023, 11:21 PMwitty-crayon-22786
02/15/2023, 11:23 PM