-
Notifications
You must be signed in to change notification settings - Fork 18
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
NewLayerContributor does not log expected logs #46
Comments
We should probably add an argument to the layer contributor with the logger or default it to some sane value like os.Stdout |
The issue with changing the signature of It's a little annoying, but what we typically do when using this API is to just set the logger directly after.
Probably the only thing I could see us addressing here in the short to medium-term would be adding a net new method, like |
Defaulting it to Having some possibility to set the logger like |
My issue with defaulting this to I actually almost closed this issue out the other day because in libcnb v2 we removed the concept of layer contributors entirely. I do want to add them back in libpak v2, because I think they are valuable and it'll help Paketo with upgrading to v2, but at that point we can change the API and ensure that loggers are being passed around correctly. That's ultimately why I didn't close this out, cause I wanted to keep it open as a reminder of this use case. |
What happened?
NewLayerContributor does not accept a logger instance. As a result bard.Logger does not have a proper file descriptor to log to. As a result contributors created using this don't show proper logs during the build process around caching etc.
Use NewLayerContributor
See logs around it
No logs
Build Configuration
pack
,kpack
,tekton
buildpacks plugin, etc.) are youusing? Please include a version.
pack and kpack
Internal
pack inspect-builder <builder>
?Checklist
The text was updated successfully, but these errors were encountered: