Sysand clone fails

Hi,

I am trying to use clone but get this error:
PS C:\Users\rkarban\Downloads\test1> sysand -v clone alexander-ahlbrecht/librarystpa
debug: sysand v0.1.4
debug: trying to discover project in C:\Users\rkarban\Downloads\test1
debug: discover: checking in parent of C:\Users\rkarban\Downloads\test1
debug: discover: checking in parent of C:\Users\rkarban\Downloads
debug: discover: checking in parent of C:\Users\rkarban
debug: discover: checking in parent of C:\Users
debug: discover: not found
debug: trying to discover workspace in C:\Users\rkarban\Downloads\test1
debug: discover: checking in parent of C:\Users\rkarban\Downloads\test1
debug: discover: checking in parent of C:\Users\rkarban\Downloads
debug: discover: checking in parent of C:\Users\rkarban
debug: discover: checking in parent of C:\Users
debug: discover: not found
debug: failed to get metadata of old env at C:\Users\rkarban\Downloads\test1\sysand_env: The system cannot find the file specified. (os error 2)
debug: clearing contents of dir .
error: failed to canonicalize path
alexander-ahlbrecht/librarystpa:
The system cannot find the path specified. (os error 3)

Please advise.

Thanks,

Robert

Hi Robert!

The bare alexander-ahlbrecht/librarystpa is a shorthand that add understands — it expands to the PURL pkg:sysand/alexander-ahlbrecht/librarystpa. clone doesn’t apply that expansion
yet: it parses the locator as an IRI/URL and otherwise treats it as a filesystem path, so it tried to canonicalize alexander-ahlbrecht/librarystpa as a directory and failed.

Give clone the full PURL and it works:

sysand clone pkg:sysand/alexander-ahlbrecht/librarystpa

That pulls LibrarySTPA 0.0.1 from the index into the current directory.

If you want it as a dependency rather than a standalone copy, the shorthand is fine with add:

sysand add alexander-ahlbrecht/librarystpa

Making clone accept the / shorthand the way add does is something we’re working on.

Adam Layne, PhD