Skip to content

Conversation

@mitchell-as
Copy link
Collaborator

@mitchell-as mitchell-as commented Nov 20, 2025

We have our own internal/archiver and internal/unarchiver packages that leverage mholt/archiver, but subclass it in order to provide progress support (i.e. report back for each file extracted). However, we don't actually use that feature.

I've switched over to the mholt/archives library, which allows for progress support should we want it, but I didn't add it back in since there's no use case for it.

A majority of this PR is a result of

go get github.com/mholt/archives
go mod tidy
go mod vendor

I did find some places in our code where we were invoking mholt/archiver directly. I changed those to invoke our internal/archiver and internal/unarchiver packages. Now only those internal packages talk to mholt/archives should we ever have to change libraries again.

@mitchell-as
Copy link
Collaborator Author

Test failures are consistent with currently known nightly failures.

This PR doesn't introduce any new failures, yay!

@mitchell-as mitchell-as requested a review from MDrakos November 21, 2025 16:51
@mitchell-as mitchell-as marked this pull request as ready for review November 21, 2025 16:51
Copy link
Member

@MDrakos MDrakos left a comment

Choose a reason for hiding this comment

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

This looks good to me. With a change like this I would feel better having the integration tests passing before we do a release but that's something we will follow up with after this has been merged.

@mitchell-as mitchell-as merged commit 97fbbbe into master Nov 24, 2025
10 of 20 checks passed
@mitchell-as mitchell-as deleted the mitchell/cp-1080 branch November 24, 2025 18:30
@mitchell-as mitchell-as restored the mitchell/cp-1080 branch November 24, 2025 18:33
@mitchell-as mitchell-as deleted the mitchell/cp-1080 branch November 24, 2025 18:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants