You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Feature]: Archive Detection and Indexing for TAR.ZST files #58
internal/archive/index.go — BuildIndex (downloads via backend + supplements with HeadObject), BuildIndexFromBytes (walks tar headers without retaining data), openTar (shared decompressor factory for zstd/gzip/bzip2)
internal/archive/vfs.go — getIndex now delegates to BuildIndex; openTar removed (moved to index.go, still accessible within the package)
pkg/archive/metadata.go — minimum-length guard in IsArchive lowered from 7 → 5 to correctly recognise .tgz filenames with single-character base names (e.g. a.tgz)
All 56 internal/archive unit tests pass with -race.
Activity
docs: update CHANGELOG with session changes (issues #54, #57, #58, #59,
feat: add archive detection and indexing API (#58)
scttfrdmn commentedon Feb 22, 2026
Implemented in commit fd604a3.
New files:
internal/archive/detector.go—Detect,DetectKeys,DetectInPrefix,IsArchiveKeyinternal/archive/index.go—BuildIndex(downloads via backend + supplements withHeadObject),BuildIndexFromBytes(walks tar headers without retaining data),openTar(shared decompressor factory for zstd/gzip/bzip2)internal/archive/index_test.go— 21 tests covering all code paths (format detection, file/dir entries, root.skip, unsupported format, corrupt data, empty archive, HeadObject supplement, HeadObject failure non-fatal, 1000-file smoke test)internal/archive/detector_test.go— 14 tests covering Detect, DetectKeys, DetectInPrefix, IsArchiveKeyModified:
internal/archive/vfs.go—getIndexnow delegates toBuildIndex;openTarremoved (moved toindex.go, still accessible within the package)pkg/archive/metadata.go— minimum-length guard inIsArchivelowered from 7 → 5 to correctly recognise.tgzfilenames with single-character base names (e.g.a.tgz)All 56
internal/archiveunit tests pass with-race.