Repository: comtrya/comtrya (language: rust)

Issue:
Bug: Local Dependency Failure if no "real" hierarchy
**Description**
When you use:

```yaml
depends:
- ./a
```

and this lives inside:

```
- some/main.yaml
```

The dependency fails to resolve, because we assume there's some hierarchy and split the manifest name on ".", which doesn't exist for `main.yaml` manifests within a single level of the root.

**Steps to reproduce**
Step by step explanation. Please add the output of with `-vvv` flag enabled (be careful not to include any secrets from your config).

**Expected behaviour**
What the expected behaviour in your opinion.

**Environment**
- OS
- Version: `comtrya --version`

**Additional information**
Add more context which didn't fit in the fields above.



Discussion / hints:

Fix patch:
diff --git a/app/src/commands/apply.rs b/app/src/commands/apply.rs
index dbb64c35..1a11ed9c 100644
--- a/app/src/commands/apply.rs
+++ b/app/src/commands/apply.rs
@@ -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());


Test patch: