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

Update to yarn 4 #3887

Merged
merged 53 commits into from
Jan 9, 2025
Merged

Update to yarn 4 #3887

merged 53 commits into from
Jan 9, 2025

Conversation

sotojn
Copy link
Contributor

@sotojn sotojn commented Dec 19, 2024

This PR makes the following changes:

Changes

  • Updates teraslice repo from yarn v1.22.19 to yarn v4.6.0
  • Updates website repo form yarn v1.22.19 to yarn v4.6.0
  • Updates teraslice-cli test assets fixture repo to be compliant with yarn 4
  • Updates all package.json test scripts in the packages directory to be compliant with yarn 4's explicit dependency scope restrictions
    • In this case, @teraslice/scripts was only a dependency at the top-level, which is caused all workspaces that doesn't have @teraslice/scripts to not find the scripts binary within it's directory.
    • Yarn 1 had a loose dependency resolution algorithm where yarn 4 enforces explicit dependencies.
    • https://yarnpkg.com/blog/release/4.0#javascript-constraints

Bumped Packages

@sotojn sotojn self-assigned this Dec 19, 2024
@sotojn sotojn force-pushed the yarn-4-upgrade branch 2 times, most recently from e03ea7e to 9ce84a7 Compare January 7, 2025 19:00
@sotojn sotojn marked this pull request as ready for review January 8, 2025 23:38
@lesleydreyer
Copy link
Contributor

LGTM i was able to pull & get yarn 4 instead of 1 with the yarn path fix, maybe @jsnoble could review too though since more familiar w/teraslice then me

Copy link
Member

@godber godber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are some recommendations in here, but probably not worth pushing a new commit for. I think these changes aren't really all that bad, and mostly the cost of switching to a new version of yarn. I don't think they'd set us back much if we went to something else either.

.github/workflows/publish-tag.yml Show resolved Hide resolved
@@ -46,6 +45,7 @@
"resolutions": {
"@types/lodash": "~4.17.13",
"debug": "~4.4.0",
"jest-config": "patch:jest-config@npm%3A29.7.0#~/.yarn/patches/jest-config-npm-29.7.0-97d8544d74.patch",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There should be a comment explaining why this patch is here ... or that should be documented somewhere.

packages/teraslice-cli/src/helpers/jobs.ts Show resolved Hide resolved
@godber godber merged commit 5adbcc7 into master Jan 9, 2025
47 checks passed
@godber godber deleted the yarn-4-upgrade branch January 9, 2025 22:37
busma13 pushed a commit that referenced this pull request Jan 10, 2025
This PR makes the following changes:

## Changes

- Updates `teraslice` repo from yarn `v1.22.19` to yarn `v4.6.0`
- Updates `website` repo form yarn `v1.22.19` to yarn `v4.6.0`
- Updates `teraslice-cli` test assets fixture repo to be compliant with
yarn 4
- Updates all `package.json` test scripts in the packages directory to
be compliant with yarn 4's explicit dependency scope restrictions
- In this case, `@teraslice/scripts` was only a dependency at the
top-level, which is caused all `workspaces` that doesn't have
`@teraslice/scripts` to not find the scripts binary within it's
directory.
- Yarn 1 had a loose dependency resolution algorithm where yarn 4
enforces explicit dependencies.
  - https://yarnpkg.com/blog/release/4.0#javascript-constraints

## Bumped Packages
- release: (**minor**) **[email protected]**
- bump: (**minor**) **[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **[email protected]**
- bump: (patch) **[email protected]**
- bump: (patch) **[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **@terascope/[email protected]**
- bump: (patch) **[email protected]**
- bump: (patch) **@terascope/[email protected]**
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants