-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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?]: checksum is different from windows and unix #5136
Comments
Looks like the windows cache zipped doesn't not contain the executable permission and probably making the checksum to fail:
Is there any way to tell yarn not to check file permissions when calculating the checksum? |
for anyone having this issue, I believe this is related #2774 (comment) |
Same issue here. We're also getting different checksum hashes for dependencies managed via a git repository (i.e. via yarn 3.4.1 |
With Yarn 3 there seem to be hash/checksum mismatches for the vendor libraries (opensans, angular 1.0.8) that are stored locally, presumably some issue with the git or file system permissions. Lowish risk as we don't produce official builds from Windows agents, and it's not such a common setup. Additionally, --immutable wasn't used with Yarn 1, so this is still a step forward. Perhaps related to yarnpkg/berry#5136 or yarnpkg/berry#4598 or yarnpkg/berry#2774
Self-service
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 cachetest-github-dependency-git+ssh-298a2e1cf5-17a50be342.zip
On windows it fails with:
If i change the
.yarnrc.yml
withchecksumBehavior: update
then windows generates:test-github-dependency-git+ssh-298a2e1cf5-a5121ebaf2.zip
. You can see that the checksum is different (17a50be342
vsa5121ebaf2
)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 thatgradlew
file, the issue is not longer reproducibleTo reproduce
do the same on windows machine
Environment
Additional context
No response
The text was updated successfully, but these errors were encountered: