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
Lockfile generated after pnpm patch
cannot be used with --no-frozen-lockfile
on CI for Windows
#4961
Comments
I have created a reproduction repo for this issue: https://github.com/BlackHole1/test-pnpm-4961
See: https://github.com/BlackHole1/test-pnpm-4961/actions/runs/2595432720 macOS: https://github.com/BlackHole1/test-pnpm-4961/runs/7146689132?check_suite_focus=true#step:5:11 Linux: https://github.com/BlackHole1/test-pnpm-4961/runs/7146689233?check_suite_focus=true#step:5:11 Windows: https://github.com/BlackHole1/test-pnpm-4961/runs/7146689367?check_suite_focus=true#step:5:11 |
When use: So here's the problem:
|
Oh wow, great investigation @BlackHole1! That's fascinating—never would have suspected this. |
@BlackHole1 good investigation. Could this be caused by different line endings on Windows? |
@zkochan @BlackHole1 Yes! Looks like this is caused by the line endings. Normalizing all
|
Cool! It looks like we have a fix in place. 🌟🌟 |
ok, I'll fix it soon |
Thanks for the quick turnaround, everyone! Just confirmed that this fixes it and we're unblocked! 🎉 |
pnpm version: 7.4.1
Code to reproduce the issue:
I opened a PR to replace
patch-package
withpnpm patch
andpnpm patch-commit
, but our CI is failing on Windows only.Our lockfile was generated on macOS, so I'm wondering if the paths saved to the lockfile https://github.com/withastro/astro/pull/3747/files#diff-32824c984905bb02bc7ffcef96a77addd1f1602cff71a11fbbfdd7f53ee026bbR3-R10 are the culprit here?
Expected behavior:
CI environments defaulting to
--no-frozen-lockfile
should still work on Windows.Actual behavior:
On Windows only, we're getting this error when running
pnpm install
in CI.Additional information:
node -v
prints: 14, 16The text was updated successfully, but these errors were encountered: