Skip to content

Commit

Permalink
Merge pull request #496 from epage/config
Browse files Browse the repository at this point in the history
fix(config): Load workspace config from workspace
  • Loading branch information
epage authored Jul 12, 2022
2 parents d1e02bb + 074efae commit 14293c3
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -623,12 +623,13 @@ pub fn resolve_config(workspace_root: &Path, manifest_path: &Path) -> Result<Con
if let Some(cfg) = current_dir_config {
config.update(&cfg);
};
}

let current_dir_config = get_ws_config_from_manifest(manifest_path)?;
if let Some(cfg) = current_dir_config {
config.update(&cfg);
};
let root_manifest_path = workspace_root.join("Cargo.toml");
let current_dir_config = get_ws_config_from_manifest(&root_manifest_path)?;
if let Some(cfg) = current_dir_config {
config.update(&cfg);
};
}

// Crate config
let default_config = crate_root.join("release.toml");
Expand Down

0 comments on commit 14293c3

Please sign in to comment.