You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 19, 2026. It is now read-only.
OpenCompose CLI barfs when multiple files are provided.
$ opencompose convert -f examples/hello-nginx-external.yaml -f examples/hello-nginx.yaml ERROR: unable to read file 'examples/hello-nginx-external.yaml,examples/hello-nginx.yaml': open examples/hello-nginx-external.yaml,examples/hello-nginx.yaml: no such file or directory
$ opencompose convert -f examples/hello-nginx-external.yaml,examples/hello-nginx.yaml ERROR: unable to read file 'examples/hello-nginx-external.yaml,examples/hello-nginx.yaml': open examples/hello-nginx-external.yaml,examples/hello-nginx.yaml: no such file or directory
The first problem is that our vendored viper is pretty old, and hence multiple files are not even getting parsed. This is being fixed by updated the vendor directory.
Activity
update and strip vendoring
concaf commentedon Jun 13, 2017
Update:
But there is more to this problem, merging different
object.OpenComposestructs has not been implemented yet https://github.com/redhat-developer/opencompose/blob/master/pkg/cmd/convert.go#L106, and currently, only the input from the first file passed is taken into account.object.OpenComposeobjects, which means implementing the immutable keys table from [Proposal] Overriding attributes defined by OpenCompose to work in different environments (dev, stage, prod etc), by another OpenCompose file #149 (comment)and implement merging of objects based on this table.
We are assuming that all the files being passed are a part of one application written in OpenCompose and we will be merging them.
CC: @kadel