Skip to content

Commit

Permalink
remove SNM_PACKAGE_MANAGER_INSTALL_STRATEGY
Browse files Browse the repository at this point in the history
  • Loading branch information
ityuany committed Jul 21, 2024
1 parent 562f74a commit 2dcc714
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions crates/snm_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,6 @@ pub struct SnmConfig {

download_timeout_secs: Option<u64>,

package_manager_install_strategy: Option<InstallStrategy>,

npm_registry: Option<String>,

workspace: Option<String>,
Expand Down Expand Up @@ -192,12 +190,6 @@ impl SnmConfig {
.clone()
.unwrap_or(InstallStrategy::Ask)
}

pub fn get_package_manager_install_strategy(&self) -> InstallStrategy {
self.package_manager_install_strategy
.clone()
.unwrap_or(InstallStrategy::Ask)
}
}

pub fn parse_snm_config(workspace: &PathBuf) -> Result<SnmConfig, SnmError> {
Expand Down Expand Up @@ -270,7 +262,6 @@ mod tests {
"https://raw.githubusercontent.com",
);
env::set_var("SNM_NODE_INSTALL_STRATEGY", "auto");
env::set_var("SNM_PACKAGE_MANAGER_INSTALL_STRATEGY", "auto");

let config = parse_snm_config(&current_dir().unwrap()).unwrap();

Expand All @@ -285,7 +276,6 @@ mod tests {
node_github_resource_host: Some("https://raw.githubusercontent.com".to_string()),
node_install_strategy: Some(InstallStrategy::Auto),
download_timeout_secs: Some(60),
package_manager_install_strategy: Some(InstallStrategy::Auto),
npm_registry: None,
workspace: Some(current_dir().unwrap().to_string_lossy().to_string()),
snm_node_version: None,
Expand Down

0 comments on commit 2dcc714

Please sign in to comment.