-
Notifications
You must be signed in to change notification settings - Fork 143
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
yarn build
on the root level fails on the first run, succeeds on second
#3492
Comments
....it's kinda silly, but after some fumbling I just gave up and end up using pnpm, which solved this somewhat recursive dependency somehow. |
I wonder if |
In GH action yaml? Yep. Check out this documentation. https://www.swarmion.dev/docs/how-to-guides/migration-guides/yarn-to-pnpm/ |
No, I mean having |
Oh, I didn't knew yarn is supporting pnpm as nodeLinker option! https://yarnpkg.com/configuration/yarnrc#nodeLinker "Ghost dependency" is the keyword I was looking for, and seems worth give it a shot. |
FYI, I tried "yarn dedupe" and failed. Also about the sudden failure, there was a runner vm image update on 20231030, which including diff on nodejs since yarn on runner vm is based on corepack, it possibly affected it's behavior. If this failure started around 10/30, This seems the reason. Out of context, is it normal that "Automatic Rebase" action triggered on every issue comments? |
@Akamig Nah, I guess it isn't intended... IMO it was triggered by push PR events only. |
Currently, yarn install --immutable fails due to postinstall script yarn build, which in turn runs yarn workspaces foreach -p run build. Somehow it was working, but due to an unknown reason not related to our codebase, it no longer runs correctly, as @planetarium/account-aws-kms fails to locate @planetarium/account, which indeed does builds before the dependent @planetarium/account-aws-kms. However, when yarn workspaces foreach -p run build is run for the second time, it does run without errors.
The text was updated successfully, but these errors were encountered: