Hi,
I am experimenting with using git repositories as project usage locations, noting the docs implying the possibility here: Project metadata - Sysand User Guide
This is a useful feature, as it means I can develop privately, using existing infrastructure (git server), without needing to stand up another tool (private sysand index). Thanks for including it.
It isn’t immediately clear from the docs how the git repository should store and present the sysand package to the world. Are any of the following acceptable?
- kpar file available in “releases”, as here: Release Initial release · hugoormo/FiBo2SysMLv2 · GitHub
- “output/package.kpar” directory in the repo root?
- `.project.json` and `.meta.json` available in a directory somewhere?
A naive experiment:
sysand add https://github.com/hugoormo/FiBo2SysMLv2.git
returns
error: Failed to satisfy usage constraints:
requested project(s) alternative nr 0 depends on https://github.com/hugoormo/FiBo2SysMLv2
Despite the error, the usage is still added to `.project.json`:
{
"name": "test",
"version": "0.0.1",
"usage": [
{
"resource": "https://github.com/hugoormo/FiBo2SysMLv2.git"
}
]
}
This seems to mean that if i try to add another usage, the error caused by the first malformed import will be reported - i get no feedback about the success or not of my second import:
sysand add https://github.com/sensmetry/detect.git
reports an error about the first import again:
error: Failed to satisfy usage constraints:
requested project(s) alternative nr 0 depends on https://github.com/hugoormo/FiBo2SysMLv2
Clearing the usages array in `.project.json` and adding the Detect git repo reports the following, even though `.meta.json`/ `.project.json` are in the root dir of the repo:
error: no supported sources for project with IRI `https://github.com/sensmetry/detect.git`
Are you able to provide any guidance on best practice here?
Thanks!