Repository navigation
Add File.extract archive API - #13354
dagger-codex[bot] wants to merge 1 commit into
Conversation
b88138a to
1c47f6b
Compare
Add a File.extract API that turns supported archive files into directories. Support tar, tar.gz, tar.xz, and zip archives with path-safety checks and stripComponents handling. Regenerate client and reference artifacts for the new field. Signed-off-by: Solomon Hykes <[email protected]>
1c47f6b to
fa494c2
Compare
|
Nice work — the feature is functional, the lazy/persisted wiring matches the existing 🔴 Main design issue: we already have tar extraction
The genuinely new requirements are narrow:
Suggestion: reuse 🟠 New dependency
|
|
This PR is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
|
This PR was closed because it has been stalled for 7 days with no activity. |
Requested by Mark (<@529485027071754273>, Discord user ID 529485027071754273).
Fixes #13353.
Adds
File.extract(stripComponents: Int = 0): Directory!for extracting archiveFileobjects into first-class Dagger directories.Implemented behavior:
.tar,.tar.gz/.tgz,.tar.xz, and.zipcontentstripComponentsuniformly to tar and zip entries, skipping entries with too few components..paths, and root-escaping symlink targetsGenerated the GraphQL reference, Go, TypeScript, Python, Rust, PHP, and Elixir SDK artifacts.
Tests:
go test ./core ./core/schemadagger call engine-dev generate export --path .dagger call go-sdk generate export --path .dagger call docs references export --path .dagger call typescript-sdk client-library export --path .dagger call python-sdk client-library export --path .dagger call rust-sdk apiclient export --path .dagger call php-sdk api export --path .dagger call elixir-sdk client-library export --path .