viash-io / viash

script + metadata = standalone component
https://viash.io
GNU General Public License v3.0
36 stars 2 forks source link

[BUG] Viash ns exec returns absolute paths #728

Open Grifs opened 1 week ago

Grifs commented 1 week ago

What happened?

Absolute paths get returned even when relative paths are requested.

Steps to reproduce

viash ns exec '{}'

Expected behavior

{path} should return a relative path {abs-path} should return an absolute path

same goes for other path fields, except output, which seems to work.

This could be due the config path being stored internally as an absolute path (which makes sense) and all derivations happinging from that, without doing the necessary steps to make the paths relative.

Relevant log output

No response

Version

.

Possible solution

No response

Confirmation

Additional context

No response