Skip to content

Commit

Permalink
Fix cargo b -p nu-command --tests (#11939)
Browse files Browse the repository at this point in the history
The feature `sqlite` is not active by default on `nu-command`.
Only when building `cargo b --all --tests` would the feature be
activated via `nu`'s feature requirements.

Make the tests conditional

Saw this when double checking the removals from #11938.
Making sure each crate still compiles individually, ensures both that
you can run subcrate tests independently and that the `cargo publish`
run will succeed to build the crate with the default feature set (see
the problems occurring for the `0.90.0` release.
  • Loading branch information
sholderbach committed Feb 24, 2024
1 parent 4372d00 commit 96744e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/nu-command/tests/commands/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ mod config_nu_default;
mod continue_;
mod conversions;
mod cp;
#[cfg(feature = "sqlite")]
mod database;
mod date;
mod debug_info;
Expand Down

0 comments on commit 96744e3

Please sign in to comment.