Release v0.9.0: complete path and git dependencies

This commit is contained in:
2026-08-31 13:42:16 +08:00
parent 3c25539c11
commit f5dad74498
14 changed files with 924 additions and 87 deletions

View File

@@ -288,8 +288,15 @@ fn parse_add_args(args: &[String]) -> Result<AddArgs, i32> {
|| source_spec.starts_with("git@")
{
git = Some(source_spec);
} else if source_spec.starts_with("./")
|| source_spec.starts_with("../")
|| std::path::Path::new(&source_spec).is_absolute()
{
path = Some(source_spec);
} else {
error("Source must have a prefix (path:, git:, github:, gitlab:) or be a full URL");
error(
"Source must be a path, a prefixed source (path:, git:, github:, gitlab:), or a full URL",
);
return Err(1);
}