Skip to content

Conversation

@leotm
Copy link
Owner

@leotm leotm commented Jun 13, 2022

Only issue in Linux CI, macOS 13b locally is fine

Latest checked: rc.14

Ubuntu2204 (20220605.1)

yarn install
➤ YN0000: ┌ Resolution step
➤ YN0078: │ Invalid resolution node-forge@npm:^0.10.0 → npm:1.2.1 (yarn why: ... RN Flipper)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 137ms
  • revert yarn.lock (v4 -> v3)
  • revert (old v3) resolution commit
  • yarn install (regen v4 lockfile)
yarn --check-resolutions
➤ YN0000: ┌ Resolution step
➤ YN0078: │ Invalid resolution prismjs@npm:~1.17.0 → npm:1.26.0 (yarn why: ... @storybook)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 137ms
  • repeat

Similar on macOS Monterey 12.5 Beta

  • doesn't block yarn install
  • detected via yarn --check-resolutions

Next step


Follow-up

Still need to undo resolutions


Close: #671

@leotm leotm added this to the Yarn 4 milestone Jun 13, 2022
@leotm leotm marked this pull request as ready for review June 13, 2022 15:12
@leotm leotm marked this pull request as draft June 13, 2022 15:22
@leotm
Copy link
Owner Author

leotm commented Jun 14, 2022

Check

@leotm leotm added ci GitHub Actions workflow - Bundling / Building / Compiling / Integrating / Testing 🐧 Linux: Ubuntu 22.04 LTS for Android CI labels Jun 14, 2022
@leotm
Copy link
Owner Author

leotm commented Jun 14, 2022

Yarn 4.0.0-rc.9 --check-resolutions (can't check in v3) recognising all prev/old v3 (manual) set resolutions Invalid

yarn set version canary
yarn install
yarn --check-resolutions
➤ YN0000: ┌ Resolution step
➤ YN0078: │ Invalid resolution node-forge@npm:^0.10.0 → npm:1.2.1 (yarn why: ... RN Flipper)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 137ms

revert yarn.lock (v4 -> v3)

revert (old v3) resolution commit

yarn install (regen v4 lockfile)

yarn --check-resolutions
➤ YN0000: ┌ Resolution step
➤ YN0078: │ Invalid resolution prismjs@npm:~1.17.0 → npm:1.26.0 (yarn why: ... @storybook)
➤ YN0000: └ Completed
➤ YN0000: Failed with errors in 0s 137ms

yarn install blocker on Ubuntu, not on macOS but still detected

@leotm leotm changed the title Upgrade Yarn 3.2.1 to 4.0.0-rc.9 Upgrade Yarn 3.2.1 to 4.0.0-rc.10 Jun 30, 2022
@leotm
Copy link
Owner Author

leotm commented Jul 5, 2022

yarn patch --revert-all --dev-deps needed 😅 or yarn reset resolutions -D or lockfile codemod

edit: ok only few

shouldn't be necessary to upg Yarn v3 -> v4 🤔

temp: revert commits in order

solution: difficult w/o commit hist since lockfile snapshot overwritten 5x

hack: delete yarn lockfile to remove Yarn v3 resolutions, then re-create with Yarn v4? but resolutions lost on devDeps

@leotm leotm changed the title Upgrade Yarn 3.2.1 to 4.0.0-rc.10 Upgrade Yarn 3.2.1 to 4.0.0-rc.10+ Jul 5, 2022
@leotm leotm changed the title Upgrade Yarn 3.2.1 to 4.0.0-rc.10+ Upgrade Yarn 3.2.1 to 4.0.0-rc.9+ Jul 5, 2022
@leotm leotm changed the title Upgrade Yarn 3.2.1 to 4.0.0-rc.9+ Upgrade Yarn 3.2.1 to 4.0.0-rc.9+ (11 atm) Jul 5, 2022
@leotm leotm changed the title Upgrade Yarn 3.2.1 to 4.0.0-rc.9+ (11 atm) Upgrade Yarn 3.2.1 to 4.0.0-rc.9+ Aug 7, 2022
@leotm leotm added the 🚫 Blocked label Aug 8, 2022
@leotm
Copy link
Owner Author

leotm commented Aug 16, 2022

follow-up attempt here: #846

@leotm leotm mentioned this pull request Nov 11, 2022
leotm added a commit that referenced this pull request Nov 16, 2022
@leotm leotm added p: Yarn Yarn and removed 🚫 Blocked labels Nov 16, 2022
@leotm
Copy link
Owner Author

leotm commented Nov 16, 2022

@leotm leotm closed this in 4b362eb Dec 8, 2022
@leotm leotm closed this in #1205 Dec 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci GitHub Actions workflow - Bundling / Building / Compiling / Integrating / Testing p: Yarn Yarn 🐧 Linux: Ubuntu 22.04 LTS for Android CI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade Yarn 3.2.1 to 4.0.0-rc.9

2 participants