Build bundle on top of another bundle #352
-
Is it possible to build a bundle file from current directory and combining with another bundle file? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes. You'll need to ensure you provide a error: bundle merge failed: manifest has overlapped roots: '' and '' Provided that you have a directory structure similar to: $ tree -a
.
├── bundle1
│ ├── .manifest
│ ├── p1
│ │ └── data.json
│ └── p1.rego
└── bundle2
├── .manifest
├── p2
│ └── data.json
└── p2.rego
5 directories, 6 files You can build the first bundle: $ opa build -o bundle1.tar.gz -b bundle1 And then a second bundle using both the opa build -o bundle2.tar.gz bundle2 -b bundle1 There seems to be a bug in that unless you explicitly provide a With all that said, I would prefer to build a single bundle from directory structure only. So another, and in my opinion better, option would be to first unpack the other bundle, and then build a new one from the contents of that and your other directory. |
Beta Was this translation helpful? Give feedback.
Yes. You'll need to ensure you provide a
.manifest
file in the bundle that denotes the roots of the bundle, or else you'll see conflicts like:Provided that you have a directory structure similar to:
$ tree -a . ├── bundle1 │ ├── .manifest │ ├── p1 │ │ └── data.json │ └── p1.rego └── bundle2 ├── .manifest ├── p2 │ └── data.json └── p2.rego 5 directories, 6 files
You can build the first bundle:
And then a second bundle using both the
bundle2
directory and the first bundle as input:There seems to be a bug i…