Skip to content

Build bundle on top of another bundle #352

Discussion options

You must be logged in to vote

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:

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 bundle2 directory and the first bundle as input:

opa build -o bundle2.tar.gz bundle2 -b bundle1

There seems to be a bug i…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ronnie-personal
Comment options

Answer selected by Ronnie-personal
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants