fix: ya pack deploy path handling

This commit is contained in:
lpnh 2025-01-09 14:47:10 -03:00
parent 1e0c5ff61c
commit 3193a40a95

View file

@ -9,7 +9,11 @@ use super::Dependency;
impl Dependency {
pub(super) async fn deploy(&mut self) -> Result<()> {
let from = self.local().join(&self.child);
let from = if self.child.is_empty() {
self.local().join(&self.child)
} else {
self.local().join(format!("{}.yazi", self.child))
};
self.header("Deploying package `{name}`")?;
self.is_flavor = maybe_exists(&from.join("flavor.toml")).await;