Skip to content

refactor(deps): migrate from mholt/archiver/v3 to mholt/archives#1787

Draft
anthony-gomez-fastly wants to merge 1 commit intomainfrom
refactor-mholt-archiver-to-archives
Draft

refactor(deps): migrate from mholt/archiver/v3 to mholt/archives#1787
anthony-gomez-fastly wants to merge 1 commit intomainfrom
refactor-mholt-archiver-to-archives

Conversation

@anthony-gomez-fastly
Copy link
Copy Markdown
Member

@anthony-gomez-fastly anthony-gomez-fastly commented May 8, 2026

Change summary

Replace the deprecated mholt/archiver/v3 library with the newer mholt/archives library. This migration updates all archive handling code to use the new stream-oriented API.

Changes:

  • Replace archiver.Unarchive() with archives.Identify() + archives.Extract()
  • Replace archiver.NewTarGz().Archive() with archives.CompressedArchive
  • Create shared ExtractArchive() utility in pkg/file/archive.go to eliminate code duplication across archive.go, github.go, and deploy.go
  • Update all file iteration to use archives.FileInfo instead of archiver.File
  • Add createTarGz() helper for creating tar.gz archives

All Submissions:

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  • Does your submission pass tests?

Changes to Core Features:

  • Have you written new tests for your core changes, as applicable?
  • Have you successfully run tests with your changes locally?

@anthony-gomez-fastly anthony-gomez-fastly force-pushed the refactor-mholt-archiver-to-archives branch from f2311f1 to f3f86e8 Compare May 8, 2026 20:27
Replace the deprecated mholt/archiver/v3 library with the newer
mholt/archives library. This migration updates all archive handling
code to use the new stream-oriented API.

Changes:
- Replace archiver.Unarchive() with archives.Identify() + archives.Extract()
- Replace archiver.NewTarGz().Archive() with archives.CompressedArchive
- Create shared ExtractArchive() utility in pkg/file/archive.go to
  eliminate code duplication across archive.go, github.go, and deploy.go
- Update all file iteration to use archives.FileInfo instead of archiver.File
- Add createTarGz() helper for creating tar.gz archives
@anthony-gomez-fastly anthony-gomez-fastly force-pushed the refactor-mholt-archiver-to-archives branch from f3f86e8 to 4c6eb28 Compare May 8, 2026 21:01
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