Skip to content

Commit

Permalink
Use .elp.toml location for discovering non-buck config
Browse files Browse the repository at this point in the history
Summary:
When we find a `.elp.toml` file with buck disabled, we look for alternate config in the same directory.
Actually use this location, rather than the starting path for the config process.

Reviewed By: robertoaloi

Differential Revision: D53042195

fbshipit-source-id: eca6dd52d53ebfb45d536577ef54c8834b50a1cc
  • Loading branch information
alanz authored and facebook-github-bot committed Jan 25, 2024
1 parent ee013ce commit 593b7aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/project_model/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ impl ProjectManifest {
let buck = elp_config.clone().buck.unwrap(); // Safe from prior line
return Ok((elp_config.clone(), ProjectManifest::TomlBuck(buck)));
} else {
let manifest = ProjectManifest::discover_in_place(path)?;
let manifest = ProjectManifest::discover_in_place(elp_config.config_path())?;
return Ok((elp_config.clone(), manifest));
}
}
Expand Down

0 comments on commit 593b7aa

Please sign in to comment.