-
Notifications
You must be signed in to change notification settings - Fork 37
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
dpkg_status
does not add transitive dependencies
#54
Comments
These are still pre-1.0 rules, I am not surprised it is not doing the right thing. This is not a priority for us, but we are happy to accept PRs. I'd imagine an aspect walking up the tree would do the trick. |
I might be wrong as I haven't used aspects much, but I think an aspect won't quite cut it currently since the How about making a new rule with a deb_package(
name = "{target_name}",
control = ":control",
srcs = [
{deps}
] + [":data"]
) |
It seems to me that https://github.com/GoogleContainerTools/rules_distroless/blob/main/examples/debian_snapshot/BUILD.bazel#L74 is just wishing for a |
Could we add an additional rule in the template that contains the control for a given package, and its dependencies in a filegroup? I'm not sure if this would have any disadvantages compared to a |
As of #115 we automatically create a dpkg_status target for every |
Currently there is no transitive dependency resolution of the packages that you provide to the
dpkg_status
rule. This causesapt
to complain about missing dependencies and thinking that the install is broken. It might be possible to work around with a custom rule to resolve transitive deps of the top level packages you want to have installed before passing todpkg_status
, but it feels like this should be default behavior.The text was updated successfully, but these errors were encountered: