Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Yarn v3 #119

Merged
merged 9 commits into from
Nov 18, 2022
Merged

Yarn v3 #119

merged 9 commits into from
Nov 18, 2022

Conversation

adonesky1
Copy link
Contributor

@adonesky1 adonesky1 commented Nov 17, 2022

Upgrades package manager from Yarn v1 to Yarn v3.

Followed the migration guide + some of the example set in this migration PR for @metamask/controller

@adonesky1 adonesky1 force-pushed the yarn-v3 branch 2 times, most recently from 39bf28d to 14d33f3 Compare November 17, 2022 19:36
@adonesky1 adonesky1 force-pushed the yarn-v3 branch 2 times, most recently from f89aa51 to 9b57166 Compare November 17, 2022 19:48
@adonesky1 adonesky1 marked this pull request as ready for review November 17, 2022 20:30
@adonesky1 adonesky1 requested a review from a team as a code owner November 17, 2022 20:30
Copy link

@mcmire mcmire left a comment

Choose a reason for hiding this comment

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

Nice job on this, just had a few suggestions.

package.json Outdated Show resolved Hide resolved
.github/workflows/lint-test.yml Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
adonesky1 and others added 3 commits November 17, 2022 15:08
Co-authored-by: Elliot Winkler <[email protected]>
Co-authored-by: Elliot Winkler <[email protected]>
@@ -29,8 +29,7 @@ jobs:
with:
path: ${{ steps.yarn-cache-dir.outputs.YARN_CACHE_DIR }}
key: yarn-cache-${{ runner.os }}-${{ steps.yarn-version.outputs.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
- run: yarn --frozen-lockfile
- run: yarn allow-scripts
- run: yarn --immutable --immutable-cache
Copy link

@mcmire mcmire Nov 17, 2022

Choose a reason for hiding this comment

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

Hmm... maybe we don't want --immutable-cache after all, since it seems to fail if the cache folder doesn't exist (see CI). @Gudahtt What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

The --immutable-cache flag was meant to be used in the post-prepare jobs, where it was guaranteed the cache would be populated. Agreed that we shouldn't use it here.

Copy link

Choose a reason for hiding this comment

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

Agh, my bad, that's right. Sorry @adonesky1 we don't want this after all, so this should just be yarn --immutable 😅

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done here

.yarnrc.yml Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Gudahtt
Gudahtt previously approved these changes Nov 18, 2022
Copy link
Member

@Gudahtt Gudahtt left a comment

Choose a reason for hiding this comment

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

LGTM! Couple of minor suggestions but this all looks good

@adonesky1 adonesky1 merged commit 6e796af into main Nov 18, 2022
@adonesky1 adonesky1 deleted the yarn-v3 branch November 18, 2022 00:57
Gudahtt added a commit that referenced this pull request Jan 24, 2023
This file has not been used as of the Yarn v3 migration in #119. It was accidentally left behind.
@Gudahtt Gudahtt mentioned this pull request Jan 24, 2023
adonesky1 pushed a commit that referenced this pull request Jan 24, 2023
This file has not been used as of the Yarn v3 migration in #119. It was accidentally left behind.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants