Skip to content

data.json contents are not included as part of bundle #129

@sanagrwl

Description

@sanagrwl

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

  1. Directory structure:
├── .manifest
└── env_data
    └── dev
        └── data.json
  1. .manifest file contents:
{
    "revision": "local",
    "roots": [
        "env_data/dev"
    ],
    "rego_version": 1
}
  1. env_data/dev/data.json contents:
{
    "a": "b"
}
  1. Build bundle
eopa build -b .

Result - Contents of data.json in the generated bundle are {}.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions