-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Description
Self-service
- I'd be willing to implement a fix
Describe the bug
yarn install fails on windows machine for the same dependency.
Doing yarn install
on mac you get the following file inside the cache test-github-dependency-git+ssh-298a2e1cf5-17a50be342.zip
On windows it fails with:
yarn install
➤ YN0000: ┌ Resolution step
➤ YN0000: └ Completed
➤ YN0000: ┌ Fetch step
➤ YN0013: │ test-github-dependency@git+ssh://[email protected]:angel-git/test-gith
➤ YN0018: │ test-github-dependency@git+ssh://[email protected]:angel-git/test-githu
b-dependency.git#commit=a9558b728dfcee08264f221211d859e3417a4971: The remote arc
hive doesn't match the expected checksum
➤ YN0000: └ Completed in 7s 544ms
➤ YN0000: Failed with errors in 7s 559ms
If i change the .yarnrc.yml
with checksumBehavior: update
then windows generates: test-github-dependency-git+ssh-298a2e1cf5-a5121ebaf2.zip
. You can see that the checksum is different (17a50be342
vs a5121ebaf2
)
Doing an hexdump
for both of files and comparing ( hexdump -C test-github-dependency-git+ssh-298a2e1cf5-17a50be342.zip
):
The difference is some small character, after more investigating the issue is coming from the bash script gradlew
that lives inside the dependency. If i remove that gradlew
file, the issue is not longer reproducible
To reproduce
git clone https://github.com/angel-git/yarn-issue
cd yarn-issue
yarn install
do the same on windows machine
Environment
MAC:
System:
OS: macOS 13.0.1
CPU: (10) arm64 Apple M1 Max
Binaries:
Node: 16.18.0 - /private/var/folders/l0/vlwfh6h92q7fx1g68qxp53140000gp/T/xfs-7f3cfcc9/node
Yarn: 3.3.0 - /private/var/folders/l0/vlwfh6h92q7fx1g68qxp53140000gp/T/xfs-7f3cfcc9/yarn
npm: 8.19.2 - /opt/homebrew/bin/npm
WINDOWS:
System:
OS: Windows 10 10.0.19045
CPU: (16) x64 AMD Ryzen 7 5800X 8-Core Processor
Binaries:
Node: 16.12.0 - ~\AppData\Local\Temp\xfs-3a0cc209\node.CMD
Yarn: 3.3.0 - ~\AppData\Local\Temp\xfs-3a0cc209\yarn.CMD
npm: 8.1.0 - C:\Program Files\nodejs\npm.CMD
Additional context
No response