Skip to content

Conversation

cprussin
Copy link
Collaborator

Summary

It seems like vercel does not correctly use corepack during the ignoreCommand, which was the cause of the flakiness with ignoring builds for so long.

We thought we had fixed it in #2468 , but it turns out this doesn't actually work -- it seems like Vercel does not properly apply env vars from the vercel.json config file -- so in effect that just disabled corepack entirely. It wasn't a huge issue as Vercel was choosing a close enough version of pnpm by default, but it would be better to actually use corepack and ensure Vercel is using the exact same version of pnpm that we are locked to in the monorepo.

This PR, along with readding the ENABLE_EXPERIMENTAL_COREPACK env var via the Vercel dashboard, should both re-enable corepack on builds AND fix the ignoreCommand to properly use corepack.

Rationale

Using corepack correctly ensures that Vercel builds are using the same version of pnpm that we're locked to in the monorepo, which prevents subtle issues caused by differing tooling versions.

How has this been tested?

I can't test this until it builds on Vercel, so I'll look at the logs to see if it worked!

@cprussin cprussin requested a review from a team as a code owner March 18, 2025 18:24
Copy link

vercel bot commented Mar 18, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
api-reference ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 7:32pm
component-library ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 7:32pm
entropy-debugger ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 7:32pm
insights ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 7:32pm
proposals ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 7:32pm
staking ✅ Ready (Inspect) Visit Preview 💬 Add feedback Mar 18, 2025 7:32pm

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.

1 participant