Skip to content

feat(deps): upgrade blob library to v1.1.0 - #14

Merged
jmgilman merged 1 commit into
masterfrom
feat/upgrade-blob-v1.1.0
Jan 23, 2026
Merged

jmgilman merged 1 commit into
masterfrom
feat/upgrade-blob-v1.1.0

Conversation

@jmgilman

Copy link
Copy Markdown
Contributor

Summary

  • Upgrade blob dependency from v1.0.0 to v1.1.0
  • Replace ~108 lines of workaround code with new v1.1.0 APIs
  • Net reduction of 65 lines while improving consistency

Changes

File Description
go.mod Update blob v1.0.0 → v1.1.0
cmd/cat.go Replace 18-line validation loop with ValidateFiles()
cmd/cp.go Use NormalizePath(), Exists(), IsDir(), IsFile(), and CopyStats returns
cmd/pull.go Capture CopyStats from CopyDir for consistent counts
internal/archive/archive.go Documentation update for dot-segment handling

API Usage

  • blob.NormalizePath(path) - Path normalization for fs.ValidPath
  • archive.ValidateFiles(paths...) - Bulk file validation
  • archive.Exists(path), IsDir(path), IsFile(path) - Convenience checks
  • CopyDir/CopyToWithOptions now return (CopyStats, error) with FileCount and TotalBytes

Test plan

  • All existing tests pass (just ci)
  • Code compiles successfully
  • Manual testing with test image: blob cat/cp/pull docker.io/meigma/blob-test:v1

🤖 Generated with Claude Code

Replace workaround code with new blob v1.1.0 APIs:

- cat.go: Use ValidateFiles() instead of manual validation loop
- cp.go: Use NormalizePath(), Exists(), IsDir(), IsFile(), and
  CopyStats return from CopyDir/CopyToWithOptions
- pull.go: Capture CopyStats from CopyDir for consistent FileCount
  and TotalBytes reporting
- archive.go: Add documentation for path.Clean dot-segment handling

Net reduction of ~65 lines while improving API consistency.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@jmgilman
jmgilman merged commit e5c5e8b into master Jan 23, 2026
5 checks passed
@jmgilman
jmgilman deleted the feat/upgrade-blob-v1.1.0 branch January 23, 2026 17:02
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.

1 participant