viash-io / viash

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

viash ns build with --flatten overwrites the .config.viash.yaml #298

Open Grifs opened 1 year ago

Grifs commented 1 year ago

New functionality in viash always outputs .config.viash.yaml next to the built component, however when the --flatten is used, the same .config.viash.yaml file is overwritten by each subsequent component.

Side note, when using the --parallel flag, components will randomly fail to build properly as the .config.viash.yaml is locked for writing at the moment.

Furthermore, as @rcannood mentions (not confirmed by YT - but it makes perfect sense) --flatten also has issues with resources overwriting other resources.

A solution could be to still write components to their individual folders and then create symlinks in a flattened structure.

rcannood commented 1 year ago

A solution could be to still write components to their individual folders and then create symlinks in a flattened structure.

:+1:

@toni WDYT?