Skip to content

Conversation

@andrius-puksta-sensmetry
Copy link
Collaborator

@andrius-puksta-sensmetry andrius-puksta-sensmetry commented Jan 7, 2026

Users want to do this anyway (at least for experimenting), so might as well accomodate them.

Changes

  • Add --path argument to add that allows adding path usages by converting them to file:// URL. Recommend using workspaces.
  • Guide users to use path usage if IRI parsing fails
  • Fail when building a kpar if path usages are present, unless --allow-path-usage is passed (in that case a warning is still produced)
  • Guide users to use init instead of new (sysand new was mentioned in AoSysML, so this at least gives users something actionable)

…are present

Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
@victor-linroth-sensmetry
Copy link
Collaborator

So while using file urls for quick experimentation is fine, it's non-portable so generally bad practise and should not be encouraged. As such I would prefer not to have a nice and simple flag like --path for this, and instead have something with a bit more friction to it.

If we are to use a --path flag it should be part of the more general configuration of sources I've been working on (I've not committed to a UI for that though and will want some feedback before finalising).

@tilowiklundSensmetry
Copy link
Member

So while using file urls for quick experimentation is fine, it's non-portable so generally bad practise and should not be encouraged. As such I would prefer not to have a nice and simple flag like --path for this, and instead have something with a bit more friction to it.

If we are to use a --path flag it should be part of the more general configuration of sources I've been working on (I've not committed to a UI for that though and will want some feedback before finalising).

I do think we need something that is (equivalently) easy to use for learning purposes, and --path is sort of the only thing I can think of.

A complex alternative option would be to have the Sysand client maintain some sort of "local index" that the user can either install, or register projects to. This is sort of doable already (using env install), but would need to be made a bit more ergonomic.

@vytautas-astrauskas-sensmetry
Copy link
Collaborator

vytautas-astrauskas-sensmetry commented Jan 8, 2026

warn when building a kpar if path usages are present

I strongly believe that if we allow adding usages with path argument, this should be a hard error because URIs are global, so such kpar is (almost surely) unusable outside of the computer on which it was created.

Also, in the documentation we probably should recommend using workspaces instead.

…override this

Signed-off-by: Andrius Pukšta <andrius.puksta@sensmetry.com>
@andrius-puksta-sensmetry
Copy link
Collaborator Author

If we are to use a --path flag it should be part of the more general configuration of sources

But these accomplish different things: this PR simplifies creating a file:// URL, and that PR involves another configuration file (and this should be indicated, preferably in the CLI invocation itself, maybe something like --map-from and --map-to).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants