You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Esbuild is a core dependency for many frontend projects. I was able to provide clear and simple steps for how to reproduce the bug in the following issue: evanw/esbuild#3510
Thanks to ESbuild's project team, they noticed that yarn is not retaining the "x" bit on the file permissions when using pnpm. Reverting back to pnp is the only workaround I've found so far.
To reproduce
corepack enable
yarn set version berry
yarn init -2
yarn add esbuild
echo"nodeLinker: pnpm">> .yarnrc.yml
yarn
…#6066)
**What's the problem this PR addresses?**
This is the fix for missing executable perms when installing
dependencies like turbo and esbuild with pnpm linker
(#5165,
#5991)
Resolves#5165
<!-- Describe the rationale of your PR. -->
<!-- Link all issues that it closes. (Closes/Resolves #xxxx.) -->
**How did you fix it?**
<!-- A detailed description of your implementation. -->
Looks like the code was missing for setting permissions for the file
copied by pnpm linker into content-addressable store
I added `destinationFs.chmodPromise` to `copyFileViaIndex` in `fslib` if
the file is not in store (`if (!indexStat)` branch)
**Checklist**
<!--- Don't worry if you miss something, chores are automatically
tested. -->
<!--- This checklist exists to help you remember doing the chores when
you submit a PR. -->
<!--- Put an `x` in all the boxes that apply. -->
- [x] I have read the [Contributing
Guide](https://yarnpkg.com/advanced/contributing).
<!-- See
https://yarnpkg.com/advanced/contributing#preparing-your-pr-to-be-released
for more details. -->
<!-- Check with `yarn version check` and fix with `yarn version check
-i` -->
- [x] I have set the packages that need to be released for my changes to
be effective.
<!-- The "Testing chores" workflow validates that your PR follows our
guidelines. -->
<!-- If it doesn't pass, click on it to see details as to what your PR
might be missing. -->
- [x] I will check that all automated PR checks pass before the PR gets
reviewed.
---------
Co-authored-by: Maël Nison <[email protected]>
Self-service
Describe the bug
Esbuild is a core dependency for many frontend projects. I was able to provide clear and simple steps for how to reproduce the bug in the following issue:
evanw/esbuild#3510
Thanks to ESbuild's project team, they noticed that yarn is not retaining the "x" bit on the file permissions when using pnpm. Reverting back to pnp is the only workaround I've found so far.
To reproduce
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: