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.
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.