Skip to content

loader: pass bundle name in AsBundle()#7798

Merged
srenatus merged 1 commit intoopen-policy-agent:mainfrom
srenatus:sr/ssssowknomqt
Jul 24, 2025
Merged

loader: pass bundle name in AsBundle()#7798
srenatus merged 1 commit intoopen-policy-agent:mainfrom
srenatus:sr/ssssowknomqt

Conversation

@srenatus
Copy link
Copy Markdown
Contributor

It seems correct to give the bundle a name, after all. It's just metadata.

It seems correct to give the bundle a name, after all.
It's just metadata.

Signed-off-by: Stephan Renatus <stephan@styra.com>
@netlify
Copy link
Copy Markdown

netlify Bot commented Jul 24, 2025

Deploy Preview for openpolicyagent ready!

Name Link
🔨 Latest commit 47b6dee
🔍 Latest deploy log https://app.netlify.com/projects/openpolicyagent/deploys/6881e2a603e05a0008982f9e
😎 Deploy Preview https://deploy-preview-7798--openpolicyagent.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread v1/loader/loader.go
WithRegoVersion(fl.opts.RegoVersion)
WithRegoVersion(fl.opts.RegoVersion).
WithLazyLoadingMode(fl.bundleLazyLoading).
WithBundleName(path)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This only affects module paths, right, so data paths are preserved?

But since this affects the bundle path that's then used for creating bundles, e.g. in opa build, wouldn't this mean that this path prefix would now end up in the produced bundle? This isn't necessarily bad, as it might even take care of possible collisions when loading multiple bundle paths at once (might currently be resolved some other way, though). But it is a structural change to produced bundles, which could be considered breaking (at least enough so we should remember to make note of it in the changelog).

@srenatus srenatus merged commit cba9eee into open-policy-agent:main Jul 24, 2025
31 checks passed
@srenatus srenatus deleted the sr/ssssowknomqt branch July 24, 2025 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants