New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add metadata option to .manifest #4306
Add metadata option to .manifest #4306
Conversation
bundle/bundle.go
Outdated
@@ -180,7 +180,7 @@ func (m Manifest) Copy() Manifest { | |||
|
|||
func (m Manifest) String() string { | |||
m.Init() | |||
return fmt.Sprintf("<revision: %q, roots: %v, wasm: %+v>", m.Revision, *m.Roots, m.WasmResolvers) | |||
return fmt.Sprintf("<revision: %q, roots: %v, wasm: %+v, metadata: %x>", m.Revision, *m.Roots, m.WasmResolvers, m.Metadata) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change %x
to %+v
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
1c7891b
to
fd17716
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
0fd3ba2
to
6d969b9
Compare
fixes: open-policy-agent#4289 Signed-off-by: marensws <msws@live.no>
f589f50
to
6c24ab7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks a lot. There's a whitespace nitpick, but please ignore that. Let's merge this.
@@ -180,6 +181,12 @@ func (c *Compiler) WithCapabilities(capabilities *ast.Capabilities) *Compiler { | |||
return c | |||
} | |||
|
|||
//WithMetadata sets the additional data to be included in .manifest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[nit]
//WithMetadata sets the additional data to be included in .manifest | |
// WithMetadata sets the additional data to be included in .manifest |
fixes: #4289