Skip to content

Commit 605edab

Browse files
authored
ignore config toml files when WITs provided explicitly (#74)
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
1 parent 2e4d2a6 commit 605edab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ pub async fn componentize(
222222
library_path.push((*path, libraries));
223223
}
224224

225-
let config = if let Some((config_root, config_path, raw)) = raw_config {
225+
let config = if let (None, Some((config_root, config_path, raw))) = (wit_path, raw_config) {
226226
let config = ComponentizePyConfig::try_from((config_path.deref(), raw))?;
227227
Some((config_root, config_path, config))
228228
} else {

0 commit comments

Comments
 (0)