-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(core): fix package manager determination logic #28546
base: master
Are you sure you want to change the base?
fix(core): fix package manager determination logic #28546
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
View your CI Pipeline Execution ↗ for commit a4a9b75.
☁️ Nx Cloud last updated this comment at |
picked up wrong commit - updating the branch now.. |
@JamesHenry let's see if it works now. Is it a right way to create PR? ( from the fork branch, not from master ) |
Yes looks good, thank you. The error still persists. I am working on something else right now, but upon a quick try, it is reproducible locally with: pnpm nx run e2e-workspace-create:e2e-ci--src/create-nx-plugin.test.ts --skip-nx-cache Please can you take a look? You can run with E.g. for VSCode (as long as you have the NX_E2E_EDITOR=code pnpm nx run e2e-workspace-create:e2e-ci--src/create-nx-plugin.test.ts --skip-nx-cache |
You can run without |
|
so somehow |
Do you have rust installed? You'll need to follow all steps in the https://github.com/nrwl/nx/blob/master/CONTRIBUTING.md |
I open it via devcontainer - not sure if it's installed indeed |
following this guide you mention i was trying to run |
So this command is failing now: |
@ThePlenkov I think the side-effect of correctly picking up pnpm (in the case of our repo) was that it was being passed an invalid |
i think the plugin fix is also in pr #28949 |
9e1b96e
to
d3a6265
Compare
d3a6265
to
1ebce5f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So happy to see this green now, thanks again @ThePlenkov!
Please let's add some simple unit test coverage using realistic values for the relevant process.env properties for each supported package manager.
It will help folks understand how this works and protect against some basic regressions
Recreated from #28202
Current Behavior
Currently create-nx-workspace determines package manager based on the invoker's path and it might be totally misleading if some names are used in the path such as /ubuntu/my_project which is identified as bun command by mistake
Expected Behavior
It should correctly identify package manager
Related Issue(s)
Fixes #28201