Bug 2229663 - Rustc/cargo can't find source code file
Summary: Rustc/cargo can't find source code file
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rust
Version: 38
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Rust SIG
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-08-07 09:17 UTC by Jakub Čajka
Modified: 2023-08-08 00:58 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2023-08-08 00:58:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Github rust-cli anstyle issues 110 0 None open test state::codegen::table fails 2023-08-07 17:09:11 UTC

Description Jakub Čajka 2023-08-07 09:17:28 UTC
It appears that rustc/cargo can't find, resolve file dependencie properly. This has been reported upstream but they can't reproduce this issue https://github.com/rust-cli/anstyle/issues/110 .

Reproducible: Always

Steps to Reproduce:
1.git clone https://github.com/rust-cli/anstyle
2.pushd anstyle
3.cargo test
Actual Results:  
.
.
.
running 3 tests
test state::definitions::tests::pack_state_action ... ok
test state::definitions::tests::unpack_state_action ... ok
test state::codegen::table ... FAILED

failures:

---- state::codegen::table stdout ----
thread 'state::codegen::table' panicked at 'called `Result::unwrap()` on an `Err` value: Os { code: 2, kind: NotFound, message: "No such file or directory" }', crates/anstyle-parse/src/state/codegen.rs:11:54
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace


failures:
    state::codegen::table

test result: FAILED. 2 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s

Expected Results:  
All tests are built and passes

Result are the same regardless if the tests are started via the top level workspace or directly in the anstyle-parse crate.

Comment 1 Josh Stone 2023-08-07 17:09:12 UTC
As I replied upstream, I think you just need to "dnf install rustfmt".


Note You need to log in before you can comment on or make changes to this bug.