-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wxt zip
including .git/
folder in sources
zip
#738
Comments
Ok, this is bad. If dot files are being included in ZIPs by default, I need to address that ASAP. For now, I'll revert #674 and release an update. Not at home right now, so give me a few hours. |
Reverted in #742. Prepping release now. |
For future reference, when I get around to fixing this, this didn't cause dotfiles in the root directory to be included, it included non-dotfiles inside dotfile directories, like |
Revert released in |
Amazing thank you! Glad you could figure out the issue - I was scratching my head for a good bit why that test wasn't catching this 😅 |
Looks like this line might be the problem?
Noticed this when reviewing someone else's PR, but looks like this is only excluding hidden files, not hidden directories. |
Maybe! Probably best to implement the fixed tests you mentioned earlier and then see if changing that glob does the trick? |
Yup, just wanted to write that down so I don't forget about it when I get around to this |
…deSources` closes wxt-dev#604, fixes wxt-dev#738
Closed by #902 |
Released in |
Describe the bug
Turns out aklinker1/publish-browser-extension#21 is actually due to the
sources
zip being 30x larger (6mb to 190mb) after upgrading from0.17.3
to0.18.x
, and Mozilla refusing to accept such a wildly large file. I believe this is due to #674 somehow leading to my.git/
folder being included in thesources
zip, confirmed after downloading it from the release assets of my project and listing the contents of it:Also either that, zipping so many
.git/
files, or #501, is causingFATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory
when I try to runwxt zip
on0.18.x
.Reproduction
Not minimal unfortunately but easily demonstrates the issue by changing the version of
wxt
installed: https://github.com/catppuccin/github-file-explorer-icons.Steps to reproduce
git clone --recurse-submodules https://github.com/catppuccin/github-file-explorer-icons.git
pnpm install
in the project directory.pnpm zip:firefox
, note that WXT will list the size of the sources zip in the terms of 100s of MB.pnpm add -D [email protected]
dist/
directory for good measure (I think this bug was even including its own output zips in later zips?).pnpm zip:firefox
, note that WXT will list the size of the sources zip as 5-6 MB.System Info
Used Package Manager
pnpm
Validations
The text was updated successfully, but these errors were encountered: