mirror of
https://github.com/nushell/nushell.git
synced 2025-02-22 21:41:26 +01:00
Exclude polars from ensure_plugins_built(), for performance reasons (#12896)
# Description We have been building `nu_plugin_polars` unnecessarily during `cargo test`, which is very slow. All of its tests are run within its own crate, which happens during the plugins CI phase. This should speed up the CI a bit.
This commit is contained in:
parent
59f7c523fa
commit
e3db6ea04a
@ -21,7 +21,18 @@ pub fn ensure_plugins_built() {
|
||||
}
|
||||
|
||||
let cargo_path = env!("CARGO");
|
||||
let mut arguments = vec!["build", "--package", "nu_plugin_*", "--quiet"];
|
||||
let mut arguments = vec![
|
||||
"build",
|
||||
"--workspace",
|
||||
"--bins",
|
||||
// Don't build nu, so that we only build the plugins
|
||||
"--exclude",
|
||||
"nu",
|
||||
// Exclude nu_plugin_polars, because it's not needed at this stage, and is a large build
|
||||
"--exclude",
|
||||
"nu_plugin_polars",
|
||||
"--quiet",
|
||||
];
|
||||
|
||||
let profile = std::env::var("NUSHELL_CARGO_PROFILE");
|
||||
if let Ok(profile) = &profile {
|
||||
|
Loading…
Reference in New Issue
Block a user