Skip to content
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

Revert "CI: Work around a weird bug in Yarn v1.x" #131

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DeeDeeG
Copy link
Member

@DeeDeeG DeeDeeG commented May 8, 2024

Change, Rationale and Context

Change

This reverts commit 12c276b.

Background/Context

Revert a now-unnecessary workaround.

Amazingly, this issue has been avoided in the latest npm versions, as npm have restored the files Yarn 1.x rather over-optimistically required npm to have.

NodeJS has in turn bundled these versions of npm with the fixes before the final minor/patch release of every major version of NodeJS.

This is effectively a solved issue if you use the latest patch versions of NodeJS. No more incompatibility with Yarn 1.x in these narrow cases.

(Admittedly, the Yarn 1.x issue was due to a genuine bug in Yarn 1.x, not a deliberate thing from the Yarn authors I don't think).


Research Notes

See this comment for all the (somewhat exhaustive!) research I did to support making this change: npm/cli#6554 (comment)

Side note: Reverting the workaround is possible now that the Yarn 1.x issue has been effectively (and rather graciously) resolved by npm and NodeJS, even though it's to keep compatibility with a rather strange decision Yarn 1.x's authors made (+ an inadvertent bug in Yarn 1.x's code, it would seem) several years ago now in a now-essentially-frozen codebase. Thank you npm team for making the best move for the ecosystem, even if it means leaving a bit of cruft around in your own flagship project's repository!

This reverts commit 12c276b.

Revert a now-unnecessary workaround.

Amazingly, this issue has been avoided in the latest npm versions,
as npm have restored the files Yarn 1.x rather over-optimistically
required npm to have.

NodeJS has in turn bundled these versions of npm with the fixes before
the final minor/patch release of every major version of NodeJS.

This is effectively a solved issue if you use the latest patch versions
of NodeJS. No more incompatibility with Yarn 1.x in these narrow cases.

(Admittedly, the Yarn 1.x issue was due to a genuine bug in Yarn 1.x,
not a deliberate thing from the Yarn authors I don't think).
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.

None yet

1 participant