bazel-contrib / bazel-contrib/rules_distroless
dpkg_status drops transitive dependencies for apt.install(dependency_set=...) (regression vs 0.8.0)
- Dominant language
- Starlark
- Stars
- 101
- Forks
- 74
- Avg merge
- 9h 42m
- Merged PRs (30d)
- 2
Description
While migrating from 0.8.0 to 0.9.5, we noticed that `dpkg_status` for a `dependency_set` only lists the packages explicitly passed to `apt.install(dependency_set = "...", packages = [...])`, not their transitive dependencies - even though the transitive packages' files are still installed in the generated layer.
Can you confirm whether this is expected, or if it's fixable?
Contributor guide
Research direction
Start by reproducing the reported apt.install(dependency_set=..., packages=[...]) case and inspect the generated dpkg_status output, comparing it with the 0.8.0 behavior if available. Done means dpkg_status includes transitive dependencies as well as explicitly requested packages, while preserving the installed files in the generated layer.
Written by the indexing model from the issue text.
Assessment
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100