Skip to content

fix(core): ignore yarnrc during prepareExternalProject#1367

Closed
merceyz wants to merge 3 commits into
masterfrom
merceyz/github-hash-mismatch
Closed

fix(core): ignore yarnrc during prepareExternalProject#1367
merceyz wants to merge 3 commits into
masterfrom
merceyz/github-hash-mismatch

Conversation

@merceyz

@merceyz merceyz commented May 17, 2020

Copy link
Copy Markdown
Member

What's the problem this PR addresses?

Running yarn add babel-plugin-lazy-import@arcanis/babel-plugin-lazy-import#589124f8efc62a4f6a38351b9966635ea84ebb29 on Windows produces a different checksum than on Unix machines.

The reason for this is that when Yarn downloads the Yarn 1 cli it creates a .yarnrc.yml file with \r\n line endings on Windows and \n on Unix which is included when packing with Yarn 1.

How did you fix it?

Ignore .yarnrc.yml when packing with Yarn 1.

@merceyz merceyz force-pushed the merceyz/github-hash-mismatch branch from adb5b6e to c5368b9 Compare May 17, 2020 21:53
@arcanis

arcanis commented May 18, 2020

Copy link
Copy Markdown
Member

Sounds good to me 👍 While not the problem here, it makes me think: should we also explicitly disable the crlf git translation when cloning the projects? I don't think we currently do it, so it could cause extra deltas.

@merceyz

merceyz commented May 18, 2020

Copy link
Copy Markdown
Member Author

Sure, I can make a seperate PR to fix that 👍

@merceyz merceyz force-pushed the merceyz/github-hash-mismatch branch from 1550c95 to 1c879da Compare May 18, 2020 14:50
@merceyz merceyz marked this pull request as draft May 21, 2020 17:45
@bgotink bgotink mentioned this pull request May 25, 2020
@merceyz

merceyz commented May 25, 2020

Copy link
Copy Markdown
Member Author

Fixed upstream in yarnpkg/yarn#8142
Cache updated in #1403

@merceyz merceyz closed this May 25, 2020
@merceyz merceyz deleted the merceyz/github-hash-mismatch branch May 25, 2020 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants