damp-television-71348
06/10/2021, 3:48 PM./pants test ::
10:24:19.53 [ERROR] Please set RUST_BACKTRACE=1, re-run, and then file a bug at <https://github.com/pantsbuild/pants/issues>.
10:24:19.53 [INFO] Filesystem changed during run: retrying `@rule(pants.backend.python.goals.pytest_runner.run_python_test)` in 500ms...
10:24:20.04 [ERROR] panic at 'called `Result::unwrap()` on an `Err` value: "Field `argv` was not convertible to type alloc::vec::Vec<alloc::string::String>: PyErr { ptype: <class \'TypeError\'>, pvalue: Some(\'Expected type that converts to PyString but received BinaryPath\'), ptraceback: None }"', src/nodes.rs:305witty-crayon-22786
06/10/2021, 4:03 PMField `argv` was not convertible to type: Expected type that converts to PyString but received BinaryPathwitty-crayon-22786
06/10/2021, 4:03 PMBinaryPath to something that expects a Stringwitty-crayon-22786
06/10/2021, 4:04 PMargv argument in factwitty-crayon-22786
06/10/2021, 4:09 PMdamp-television-71348
06/10/2021, 5:07 PMGet(Process... to build using cargo. I specified Cargo.toml as a target source, but I'm getting
stderr:damp-television-71348
06/10/2021, 5:08 PMerror: could not find `Cargo.toml` in `/tmp/process-executionIVcwpV` or any parent directory`witty-crayon-22786
06/10/2021, 5:10 PMCargo.toml in the input_digest to the Process?witty-crayon-22786
06/10/2021, 5:11 PMwitty-crayon-22786
06/10/2021, 5:11 PMdamp-television-71348
06/10/2021, 5:11 PMcalm-ambulance-65371
06/10/2021, 7:35 PMccwitty-crayon-22786
06/10/2021, 7:46 PMcalm-ambulance-65371
06/10/2021, 7:47 PMenv to the Processcalm-ambulance-65371
06/10/2021, 7:47 PMBinaryPath to find the binary we needed, then added env={'PATH': cc.first_path.path}witty-crayon-22786
06/10/2021, 7:47 PMProcess, you can set its `env`: but to actually get the environment (which is filtered out to encourage sandboxing), you need to request it via the engine, so that when the environment changes, the the relevant @rules are invalidatedwitty-crayon-22786
06/10/2021, 7:48 PMcalm-ambulance-65371
06/10/2021, 7:48 PMcalm-ambulance-65371
06/10/2021, 7:49 PMfast-nail-55400
06/10/2021, 7:53 PMfast-nail-55400
06/10/2021, 7:55 PMDigest and brings it into the input root when neededcalm-ambulance-65371
06/10/2021, 7:57 PMcalm-ambulance-65371
06/10/2021, 7:57 PMLD_LIBRARY_PATH and other C magic pathswitty-crayon-22786
06/10/2021, 8:21 PMwitty-crayon-22786
06/10/2021, 8:28 PMwitty-crayon-22786
06/10/2021, 8:33 PMcalm-ambulance-65371
06/10/2021, 8:49 PMDigest?calm-ambulance-65371
06/10/2021, 9:04 PMwitty-crayon-22786
06/10/2021, 10:17 PMbash to do it. but it’s a gap in https://www.pantsbuild.org/docs/rules-api-file-system that renaming files it hard.fast-nail-55400
06/10/2021, 10:21 PMcool, where’s that available?it is in the source tree already. https://github.com/pantsbuild/pants/tree/main/src/python/pants/backend/go
fast-nail-55400
06/10/2021, 10:25 PM