Skip to content

chore(deps): update archiver to v8 - #10885

Open
gameroman wants to merge 1 commit into
firebase:mainfrom
gameroman:update-archiver-dependency
Open

chore(deps): update archiver to v8#10885
gameroman wants to merge 1 commit into
firebase:mainfrom
gameroman:update-archiver-dependency

Conversation

@gameroman

Copy link
Copy Markdown

Description

Updates archiver dependency to v8

Scenarios Tested

Sample Commands

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request upgrades the archiver dependency to version 8.0.0 and updates archive instantiations to use new archiver.ZipArchive() and new archiver.TarArchive(). The review feedback correctly points out that these classes are not constructible at runtime and will cause TypeErrors. It is recommended to revert to using the archiver() factory function and to keep the parameter types as archiver.Archiver to avoid type mismatch issues.

Comment thread src/archiveDirectory.ts
Comment thread src/archiveFile.ts
Comment thread src/deploy/apphosting/util.ts
Comment thread src/deploy/functions/prepareFunctionsUpload.ts
Comment thread src/deploy/functions/remoteSource.spec.ts
Comment thread src/archiveFile.ts
Comment thread src/deploy/apphosting/util.ts

@joehan joehan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM, thanks for the update

@joehan

joehan commented Aug 5, 2026

Copy link
Copy Markdown
Member

Unfortunately, this change seems to break the build (see https://github.com/firebase/firebase-tools/actions/runs/31027269420/job/92378818386?pr=10885). I'm guess that this related to v8 of archiver swapping to native esm, but i've not looked into it too closely yet

@gameroman
gameroman force-pushed the update-archiver-dependency branch from 91e36bb to 064cfc5 Compare August 8, 2026 21:51
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.

3 participants