Skip to content

Add zstd and conda archive inspection - #164

Merged
andrew merged 1 commit into
mainfrom
feature/archives-v0.6.0
Aug 28, 2026
Merged

Add zstd and conda archive inspection#164
andrew merged 1 commit into
mainfrom
feature/archives-v0.6.0

Conversation

@andrew

@andrew andrew commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

Updates archives to v0.6.0 and adds archive inspection for zstd-compressed tar files and conda v2 packages. Conda inspection reads the merged package and metadata payloads while preserving content-based format checks and archive resource limits.

Adds command-level and archive-path coverage for both formats, and updates the supported-format documentation.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR expands brief inspect archive support by updating the github.com/git-pkgs/archives dependency and adding inspection/preflight coverage for zstd-compressed tar archives plus conda v2 (.conda) packages, along with corresponding documentation updates.

Changes:

  • Add zstd-compressed tar preflight handling and recognize zstd as an inspectable archive format.
  • Add .conda handling in archive opening (using filename to select nested reader) with fallback to physical format.
  • Add tests covering zstd tar auto-inspection, conda command output, and zstd preflight entry limits; update README supported formats.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
README.md Updates supported-format documentation to include zstd and conda packages.
go.mod Bumps github.com/git-pkgs/archives to v0.6.0 and adds github.com/klauspost/compress for zstd support.
go.sum Updates module checksums for the dependency changes.
cmd/brief/inspect.go Adds zstd tar preflight support, .conda nested-archive opening behavior, and treats zstd as an archive format.
cmd/brief/inspect_test.go Adds fixtures/tests for zstd tar inspection, conda v2 inspection via command execution, and zstd preflight entry limiting.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread cmd/brief/inspect_test.go
Comment on lines +188 to +191
out, err := cmd.Output()
if err != nil {
t.Fatalf("inspect command failed: %v", err)
}
@andrew
andrew merged commit 44ad51c into main Aug 28, 2026
9 checks passed
@andrew
andrew deleted the feature/archives-v0.6.0 branch August 28, 2026 10:19
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