Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up`Dev-dependencies` are not linked when testing subpackages #860
Comments
This comment has been minimized.
This comment has been minimized.
|
This is something that we'll actually need to deny with a first-class error I believe. The lockfile doesn't list any dev-dependencies of upstream packages, so we won't actually know which copies to build if they're requested. |
alexcrichton
added
Command-test
C-bug
labels
Jan 14, 2015
alexcrichton
referenced this issue
Mar 23, 2015
Closed
dev-dependencies not installed for `cargo test -p <non-root-package>` #1442
This comment has been minimized.
This comment has been minimized.
|
When you say "deny" do you mean Would this be fixable if we added an explicit |
This comment has been minimized.
This comment has been minimized.
|
Heh well now being almost a year later, my opinions have changed on this issue a bit! Back then I did indeed intend that Unfortunately adding |
alexcrichton
referenced this issue
Apr 26, 2016
Closed
`cargo test -p foo` ignores [dev-dependendencies] #2620
This comment has been minimized.
This comment has been minimized.
|
FWIW my use case (#2620) is testing multiple crates in the same git repository. They are all reachable from the root |
mbrubeck
added a commit
to mbrubeck/cargo
that referenced
this issue
Apr 26, 2016
mbrubeck
referenced this issue
Apr 26, 2016
Closed
Build foo's dev-dependencies when running `cargo test -p foo` #2621
alexcrichton
referenced this issue
Apr 29, 2016
Merged
rustup-mock has to be a regular dependency of rustup-dist #382
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 29, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 29, 2016
alexcrichton
referenced this issue
Apr 29, 2016
Merged
rustbuild: Add support for crate tests + doctests #33282
bors
added a commit
to rust-lang/rust
that referenced
this issue
Apr 29, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 29, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
Apr 30, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
Apr 30, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
Apr 30, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 2, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
May 3, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 11, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 11, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 11, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
May 12, 2016
alexcrichton
added a commit
to alexcrichton/rust
that referenced
this issue
May 12, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
May 12, 2016
eddyb
added a commit
to eddyb/rust
that referenced
this issue
May 12, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
May 12, 2016
eddyb
added a commit
to eddyb/rust
that referenced
this issue
May 12, 2016
eddyb
added a commit
to eddyb/rust
that referenced
this issue
May 12, 2016
bors
added a commit
to rust-lang/rust
that referenced
this issue
May 12, 2016
Emilgardis
added a commit
to Emilgardis/amethyst
that referenced
this issue
Jul 20, 2016
This comment has been minimized.
This comment has been minimized.
|
Given the existence of Cargo workspaces, could we make this work for that case? That is, if you have a workspace that has a crate member "foo", which has a [dev-dependencies] section, could |
This comment has been minimized.
This comment has been minimized.
|
@luser correct! This was yet another motivation for workspaces, and I believe all the infrastructure is there for this to "just work". |
mbrubeck
added a commit
to mbrubeck/cargo
that referenced
this issue
Sep 26, 2016
mbrubeck
referenced this issue
Sep 26, 2016
Merged
Build transitive dev-dependencies when needed #3125
This comment has been minimized.
This comment has been minimized.
|
Now that workspaces are here, Cargo.lock contains the necessary information but |
mbrubeck
added a commit
to mbrubeck/cargo
that referenced
this issue
Sep 27, 2016
mbrubeck
added a commit
to mbrubeck/cargo
that referenced
this issue
Sep 27, 2016
bors
added a commit
that referenced
this issue
Sep 27, 2016
bors
closed this
in
#3125
Sep 28, 2016
This comment has been minimized.
This comment has been minimized.
kvark
commented
May 10, 2017
|
@mbrubeck |
This comment has been minimized.
This comment has been minimized.
|
My patch to fix this for the non-workspace case was rejected in #2621, with the conclusion that this is officially not supported for crates outside of a workspace, mainly because it can't be done while preserving lockfile compatibility with older Cargo versions. |
lifthrasiir commentedNov 13, 2014