Skip to content

cargo test fails from crates.io tarball #38

Closed
@ignatenkobrain

Description

@ignatenkobrain
+ /usr/bin/env CARGO_HOME=.cargo RUSTC_BOOTSTRAP=1 /usr/bin/cargo test -j48 -Z avoid-dev-deps --release --no-fail-fast
BUILDSTDERR:        Fresh smallvec v0.6.10
BUILDSTDERR:    Compiling unicode-normalization v0.1.8 (/builddir/build/BUILD/unicode-normalization-0.1.8)
BUILDSTDERR:      Running `/usr/bin/rustc --crate-name unicode_normalization src/lib.rs --color never --emit=dep-info,link -C opt-level=3 --test -C metadata=43229941e7e0e6a1 -C extra-filename=-43229941e7e0e6a1 --out-dir /builddir/build/BUILD/unicode-normalization-0.1.8/target/release/deps -L dependency=/builddir/build/BUILD/unicode-normalization-0.1.8/target/release/deps --extern smallvec=/builddir/build/BUILD/unicode-normalization-0.1.8/target/release/deps/libsmallvec-8bcaab121ba3708c.rlib -Copt-level=3 -Cdebuginfo=2 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1`
BUILDSTDERR: error[E0583]: file not found for module `test`
BUILDSTDERR:   --> src/lib.rs:75:5
BUILDSTDERR:    |
BUILDSTDERR: 75 | mod test;
BUILDSTDERR:    |     ^^^^
BUILDSTDERR:    |
BUILDSTDERR:    = help: name the file either test.rs or test/mod.rs inside the directory "src"
BUILDSTDERR: error: aborting due to previous error
BUILDSTDERR: For more information about this error, try `rustc --explain E0583`.
BUILDSTDERR: error: Could not compile `unicode-normalization`.
BUILDSTDERR: Caused by:
BUILDSTDERR:   process didn't exit successfully: `/usr/bin/rustc --crate-name unicode_normalization src/lib.rs --color never --emit=dep-info,link -C opt-level=3 --test -C metadata=43229941e7e0e6a1 -C extra-filename=-43229941e7e0e6a1 --out-dir /builddir/build/BUILD/unicode-normalization-0.1.8/target/release/deps -L dependency=/builddir/build/BUILD/unicode-normalization-0.1.8/target/release/deps --extern smallvec=/builddir/build/BUILD/unicode-normalization-0.1.8/target/release/deps/libsmallvec-8bcaab121ba3708c.rlib -Copt-level=3 -Cdebuginfo=2 -Clink-arg=-Wl,-z,relro,-z,now -Ccodegen-units=1` (exit code: 1)

I would appreciate if you would just make it under some cfg or something like that so that it does not fail for us.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions