-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
make func newDescriptor public #6517
make func newDescriptor public #6517
Conversation
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.
Hi @antgubarev 👋 And thanks for submitting this. Can you help me understand why you need newDescriptor
to be public for your custom implementation of a directory loader? The Descriptor
struct is public already, so could you not just use that directly?
Hi @anderseknert ! |
Ah, right — I didn't think of checking the fields. I don't mind making the constructor public, not sure if anyone else has objections. The DCO requirement needs to be fixed though. Just sign the commit like:
|
Seems reasonable. We should probably make withCloser public too. |
Hmm we could also check if we've got an io.Reader that also an io.Closer and call its Close() opportunistically in |
✅ Deploy Preview for openpolicyagent ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
@anderseknert I fixed my commit and made WithCloser public too |
@antgubarev can you please squash your commits and fix the sign-off ? We can then get this in. |
@ashutosh-narkar Sorry) Done. |
@antgubarev can you please fix the DCO again. Not sure what's happening. |
Signed-off-by: Anton Gubarev <antgubarev.dev@gmail.com>
@ashutosh-narkar Fixed. |
I compile bundle from key-value storage. But I can't implement DirectoryLoader for that beacause newDescriptor is private. I would like to use bundle.CustomReader. Is it possible?
Thanks!