-
-
Notifications
You must be signed in to change notification settings - Fork 109
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
[Bug]: rules_js 2.0 pnpm 9 fails to load pnpm-lock.yaml #1749
Comments
Thanks for trying out the alpha release and the bug report. @jbedard is currently working on a refactor on the lock file parsing code (#1735) that will hopefully fix this. The changes in the pnpm v9 lockfile format were significant enough that a refactor and better test coverage was warranted. After that lands we'll cut another alpha release. |
@hjellek Can you try again with https://github.com/aspect-build/rules_js/releases/tag/v2.0.0-alpha.8? |
@gregmagolan / @jbedard I've tried with 2.0.0-rc0 and now it seems to work as expected! Thanks for handling it so quickly. |
Great 👍 I'll close this for now then. But please log another or comment here if you see anything similar. |
But I might just have found another and probably related bug. In our main repo,
I see that
I don't see the same error in the example repo but that might be because the app itself is empty - I will try to reproduce it there as well. |
Yeah, that sounds related to pnpm9 and how those deps are processed in rules_js. I was having issues with If you can put a minimal repro together that would be great 👍 |
I have updated the case in https://github.com/hjellek/rules_js_alpha_test/compare/pnpm_9 now. It did not fail until I ran |
@hjellek I cloned down your repo to try to repro and the build hung indefinitely on the first
Did you ever observe that in your testing? |
@gregmagolan yeah, there is something probably traversing symlinks in one of the webpack plugins for docusaurus - I have never been able to find it unfortunately. I mentioned it in how to reproduce, as we build it with |
I think I managed to reproduce it with a more local setup in the branch
lpad seems to be correctly synced up, but local-lpad is not
|
The |
@jbedard I think I have stumbled across another edge case with 2.0.0-rc2 😬
I have recreated the problem in https://github.com/hjellek/rules_js_alpha_test/tree/pnpm_9_remix, it should be verifiable with The package in question lists the same dependency in different versions using the
Not sure if that is related though. Please let me know it you want me to file this as a separate issue, and again - thanks for your work! |
That same package keeps coming up as an interesting test case, and I swear I fixed it. I'll take another look. Thanks for the info 👍 |
See 3e08f8e and the latest rc |
@jbedard the remix-example now works as expected with Unfortunately I am back to what looks close to the original error for the docusaurus example I provided:
See https://github.com/hjellek/rules_js_alpha_test/tree/pnpm_9 and This example builds as expected with |
I updated the main branch in my example repo with all of the testcases so far. All except |
Great work, I will test it when the next rc lands! |
What happened?
Thanks for all your hard work!
After upgrading our monorepo to rules_js 2.0.0-alpha.7 and testing the pnpm9 support,
npm_translate_lock
seems to have problem parsing:I see that the package is listed in the list with a slightly different format:
vs
I created a demo-branch in a separate repository that also shows the same error here: https://github.com/hjellek/rules_js_alpha_test/compare/pnpm_9
Version
Development (host) and target OS/architectures:
macos, arm64
Output of
bazel --version
:bazel 7.1.2
Version of the Aspect rules, or other relevant rules from your
WORKSPACE
orMODULE.bazel
file:rules_js 2.0.0-alpha.7
Language(s) and/or frameworks involved:
JavaScript, Docusaurus
How to reproduce
Any other information?
No response
The text was updated successfully, but these errors were encountered: