chore: drop kaniko dependency - #2677
Open
mzihlmann wants to merge 1 commit into
Open
Conversation
mzihlmann
force-pushed
the
drop-kaniko-dependency
branch
from
August 19, 2026 22:03
11372e7 to
9834dda
Compare
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com> Signed-off-by: Martin Zihlmann <martizih@outlook.com>
mzihlmann
force-pushed
the
drop-kaniko-dependency
branch
from
August 19, 2026 22:36
9834dda to
533e44f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Hi 👋
Full disclosure, I maintain
osscontainertools/kaniko, a competing kaniko fork.pack imports one function from kaniko, to ask whether it is running in a container:
it uses none of the core features of kaniko and as such I think it should not depend on it and rather inline that single function.
Documentation
Related
@alphanota found this in #2508. That PR switches fork, which clears the duplicate but keeps a dependency pack does not need. This one removes it.
kaniko does not leave the graph, and is not meant to. lifecycle applies Dockerfiles with it for image extensions, and moved to
osscontainertools/kanikoat v0.21.17. pack pins lifecycle v0.21.0, which still carrieschainguard-dev/kaniko, so after thisgo list -m all | grep kanikostill shows that one, at v1.25.5 rather than v1.25.16 now that lifecycle's floor is the only one left. Bumping lifecycle then leaves you with one fork instead of two.go list -m allon current main, for each option:Switching leaves pack importing a kaniko package, so Go keeps loading kaniko's own requirements and the GCP, envoy and spiffe modules stay in the graph. Not importing it prunes them.