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:
Devyn Cairns 2024-05-17 08:04:59 -07:00 committed by GitHub
parent 59f7c523fa
commit e3db6ea04a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 {