Skip to content

feat: add tw trim#287

Open
kranurag7 wants to merge 1 commit intomainfrom
kr/tw-trim
Open

feat: add tw trim#287
kranurag7 wants to merge 1 commit intomainfrom
kr/tw-trim

Conversation

@kranurag7
Copy link
Contributor

@kranurag7 kranurag7 commented Jan 28, 2026

At considerable places we get reviews like go/build pipeline already pulls in go, busybox and we shouldn't be explicit at build time about those deps.

another common reviews is around runtime as well like bash-binsh already pulls in bash and bash-binsh both so let's not be explicit with both at runtime.

sometimes it's hard to get the dependency order in head while you're dealing with big package configs.

trim subcommand should help us go closer to a perfect fully implicit config.

@kranurag7 kranurag7 marked this pull request as ready for review January 29, 2026 15:40
Signed-off-by: kranurag7 <81210977+kranurag7@users.noreply.github.com>
analyzing APK dependency relationships.

A package is considered redundant if:
- It's a transitive dependency of another package in the same list
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hmm... Its better for a package to be explicit on its dependencies.
Given:

  • A depends on B and A depends on C
  • B depends on C
    Are you saying that A does not need to declare its dependency on C?

As example, Consider a package 'whizzy' which invokes curl and ceph. Currently ceph depends on curl, so whizzy could live without a curl dependency. But at some point a new version of ceph might no longer depend on curl. If whizzy does not have a dependency on curl itself, then it will be broken.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants