Skip to content

move archive detection into util/archiveutil - #7180

Open
crazy-max wants to merge 1 commit into
moby:masterfrom
crazy-max:archiveutil
Open

crazy-max wants to merge 1 commit into
moby:masterfrom
crazy-max:archiveutil

Conversation

@crazy-max

Copy link
Copy Markdown
Member

relates to docker/buildx#4104

Let frontend and external callers detect archives without importing image-layer compression backends and their transitive dependencies. Following #7148, docker/buildx#4104 adopts the shared detector for stdin build contexts and remote Bake files. However, importing util/compression also brings its backend dependencies into the package graph. So move detection into util/archiveutil, which depends only on the standard library.

Let frontend and external callers detect archives without importing image-layer compression
backends and their transitive dependencies.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant