-
-
Notifications
You must be signed in to change notification settings - Fork 937
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
v8.6.0 -> v8.6.3 breaks bzip2 tarballs #6761
Comments
It looks related to #6642, After replacing But I'm not sure if this is a bug or intentional, I tried npm v9 and yarn v2 to install the tarball above and it didn't work either. BTW, you can use |
I don't know what to do about this. I never knew bzip2 was supported. For the npm registry we only really need tgz support. This seems like an extremely rarely used feature. |
It's a really useful feature for me since pyodide doesn't release this particular package on NPM. Also it's a breaking change on a bugfix release? Idk how pnpm does versioning or if that matters for y'all. |
We had to remove decompress-maybe from our dependencies because it had a breaking change released as a non-major version bump. So pnpm started to fail. I was surprised when I have found out that pnpm can unpack something else as it was never a feature that we added knowingly. If it doesn't make installation slower, I guess we can add it back but we cannot use decompress-maybe as it now fails if there is no ZSTD installed on the system. Or we can use an older version maybe. cc @pnpm/collaborators |
I think we can keep this issue and see if more people need this feature. If we want to do it later, we can just use bzip2-maybe or keep the old version of decompress-maybe |
|
Could you share a |
It is not related to this issue. |
I'm also getting the same error as below after updating the PNPM to 8.7.0:
Should I downgrade until a fix? |
@mnlbox no, your issue is not related to this because your issue is with a tgz archive. In #6850 we have changed how we extract packages and used @dmichon-msft's tarball parser. Looks like there are some edge cases that are not handled by the new extractor. |
It doesn't look like a lot of people need this feature. If we'd ever want to support it, the easiest way would be to create a new custom tarball fetcher specifically for tarballs using bzip2. However, right now it seems like this would be not used by many, so I wouldn't bother adding complexity to the codebase. |
I'm experiencing that when I'm trying to install packages from GitHub commits pnpm add https://github.com/KevinVandy/mantine-react-table/tree/mantine-7.8/packages/mantine-react-table What I'm getting is
|
I downgraded to
v8.6.0
for now and it works.pnpm version:
v8.6.3
Code to reproduce the issue:
pnpm add https://github.com/pyodide/pyodide/releases/download/0.23.3/pyodide-0.23.3.tar.bz2
Expected behavior:
Successfully installs pyodide from a Github release.
Actual behavior:
it fails before the file is even fully downloaded:
Additional information:
node -v
prints:v20.3.0
M2 Mac
The text was updated successfully, but these errors were encountered: