Skip to content

Commit

Permalink
fix: ensure the manifest name is the dependency prefix for local depe…
Browse files Browse the repository at this point in the history
…ndencies when at top level
  • Loading branch information
rawkode committed Dec 29, 2023
1 parent b437590 commit a5ff9be
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/src/commands/apply.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ impl ComtryaCommand for Apply {

for (name, manifest) in manifests.iter() {
manifest.depends.iter().for_each(|dependency| {
let (local_dependency_prefix, _) = name.rsplit_once('.').unwrap_or(("", ""));
let (local_dependency_prefix, _) = name.rsplit_once('.').unwrap_or((name, ""));

let resolved_dependency_name =
dependency.replace("./", format!("{}.", local_dependency_prefix).as_str());
Expand Down

0 comments on commit a5ff9be

Please sign in to comment.