Hello folks,
I can't seem to package the contents of data.json file in the final bundle using eopa. Rego files get packaged correctly, but the data.json files seems to be ignored.
Regular opa works as expected.
Steps
- Directory structure:
├── .manifest
└── env_data
└── dev
└── data.json
.manifest file contents:
{
"revision": "local",
"roots": [
"env_data/dev"
],
"rego_version": 1
}
env_data/dev/data.json contents:
- Build bundle
Result - Contents of data.json in the generated bundle are {}.
- Remove the
-b, --bundle flag.
eopa build .
Warning: .manifest file found in "." but -b flag not specified. Manifest will be ignored.
# .manifest file gets overwriiten to {"revision":"","roots":[""],"rego_version":1}
Result - Contents of data.json in the generated bundle are packaged correctly but the manifest file is overwritten.
eopa version
Version: 1.43.2
OPA Version: 1.8.0
Regal Version: 0.35.2-0.20250826194016-c761047a0473
Build Timestamp: 2025-09-05T16:19:56Z
Platform: darwin/arm64
Hello folks,
I can't seem to package the contents of
data.jsonfile in the final bundle using eopa. Rego files get packaged correctly, but thedata.jsonfiles seems to be ignored.Regular opa works as expected.
Steps
.manifestfile contents:{ "revision": "local", "roots": [ "env_data/dev" ], "rego_version": 1 }env_data/dev/data.jsoncontents:{ "a": "b" }eopa build -b .Result - Contents of data.json in the generated bundle are
{}.-b, --bundle flag.Result - Contents of data.json in the generated bundle are packaged correctly but the manifest file is overwritten.
eopa version