Skip to content

warn on mismatched corepack and detected package managers#11603

Merged
kodiakhq[bot] merged 41 commits intomainfrom
endangeredmassa/reject-mismatch-corepack
Jul 9, 2024
Merged

warn on mismatched corepack and detected package managers#11603
kodiakhq[bot] merged 41 commits intomainfrom
endangeredmassa/reject-mismatch-corepack

Conversation

@EndangeredMassa
Copy link
Copy Markdown
Contributor

@EndangeredMassa EndangeredMassa commented May 15, 2024

When corepack is used and the package manager or version does not match the inferred package manager or version from the lockfile, we should throw an error. Right now, this can happen with pnpm (for example) where pnpm only logs a warning, causing indeterministic builds.

This PR mostly updates getPathOverrideForPackageManager to not care about corepack, allowing the calling code to compare the detected values to the corepack values.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented May 15, 2024

🦋 Changeset detected

Latest commit: f469113

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 7 packages
Name Type
@vercel/build-utils Patch
vercel Patch
@vercel/client Patch
@vercel/gatsby-plugin-vercel-builder Patch
@vercel/node Patch
@vercel/static-build Patch
@vercel-internals/types Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@EndangeredMassa EndangeredMassa marked this pull request as ready for review May 15, 2024 22:12
trek
trek previously approved these changes May 15, 2024
trek
trek previously approved these changes May 29, 2024
@onsclom onsclom force-pushed the endangeredmassa/reject-mismatch-corepack branch from 5a1aa63 to ed31303 Compare July 3, 2024 16:35
@onsclom
Copy link
Copy Markdown
Contributor

onsclom commented Jul 5, 2024

@EndangeredMassa and I reviewed this. Approving

@kodiakhq kodiakhq bot merged commit 3eb40c8 into main Jul 9, 2024
@kodiakhq kodiakhq bot deleted the endangeredmassa/reject-mismatch-corepack branch July 9, 2024 16:57
EndangeredMassa pushed a commit that referenced this pull request Jul 15, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## [email protected]

### Minor Changes

- Add target output to `vc inspect`
([#11821](#11821))

- Send `customEnvironmentSlugOrId` to the create deployment endpoint
([#11789](#11789))

- Add `vc target ls` command
([#11790](#11790))

### Patch Changes

- Various improvements to vc target ls
([#11840](#11840))

- Updated dependencies
\[[`3eb40c8c2`](3eb40c8),
[`d0fe663af`](d0fe663),
[`b1e4a4011`](b1e4a40),
[`55ab52512`](55ab525)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Minor Changes

- Send `customEnvironmentSlugOrId` to the create deployment endpoint
([#11789](#11789))

### Patch Changes

- Updated dependencies
\[[`3eb40c8c2`](3eb40c8)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- reject mismatched corepack and detected package managers
([#11603](#11603))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`3eb40c8c2`](3eb40c8)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Ensure we do not include ending slash in matched path
([#11830](#11830))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`3eb40c8c2`](3eb40c8)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Update `@remix-run/dev` fork to v2.10.2
([#11837](#11837))

## @vercel/[email protected]

### Patch Changes

- [framework-fixtures]: Bump the core group across 1 directory with
3 updates ([#11773](#11773))

-   Updated dependencies \[]:
    -   @vercel/[email protected]

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`3eb40c8c2`](3eb40c8)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@EndangeredMassa EndangeredMassa changed the title reject mismatched corepack and detected package managers warn on mismatched corepack and detected package managers Jul 18, 2024
EndangeredMassa added a commit that referenced this pull request Jul 18, 2024
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
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.

4 participants