Skip to content

Revert "Revert "warn on mismatched corepack and detected package managers""#11887

Merged
kodiakhq[bot] merged 14 commits intomainfrom
revert-11879-revert-11603-endangeredmassa/reject-mismatch-corepack
Aug 23, 2024
Merged

Revert "Revert "warn on mismatched corepack and detected package managers""#11887
kodiakhq[bot] merged 14 commits intomainfrom
revert-11879-revert-11603-endangeredmassa/reject-mismatch-corepack

Conversation

@EndangeredMassa
Copy link
Copy Markdown
Contributor

Reverts #11879

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Jul 22, 2024

🦋 Changeset detected

Latest commit: 47c7624

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

onsclom
onsclom previously approved these changes Aug 9, 2024
@onsclom onsclom force-pushed the revert-11879-revert-11603-endangeredmassa/reject-mismatch-corepack branch from 1dd7d90 to de0cb17 Compare August 20, 2024 19:50
@onsclom
Copy link
Copy Markdown
Contributor

onsclom commented Aug 20, 2024

The problem was in this branch of logic. If corepack is not enabled, we should prefer detecting the package manager from the lockfile, but getPathOverrideForPackageManager would simply return NO_OVERRIDE. This uses the default pnpm in the build container, pnpm 6, which would error on different package.json#engines.pnpm values.

This commit shows and fixes the problematic test case. Fixed the behavior, tested with vercel/api, and it now works as expected!

Copy link
Copy Markdown
Contributor Author

@EndangeredMassa EndangeredMassa left a comment

Choose a reason for hiding this comment

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

👍
(I can't approve this because I opened the PR.)

@kodiakhq kodiakhq bot merged commit c6d4695 into main Aug 23, 2024
@kodiakhq kodiakhq bot deleted the revert-11879-revert-11603-endangeredmassa/reject-mismatch-corepack branch August 23, 2024 19:29
onsclom pushed a commit that referenced this pull request Aug 23, 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
## @vercel/[email protected]

### Patch Changes

- Revert "Revert "warn on mismatched corepack and detected package
managers"" ([#11887](#11887))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`c6d469595`](c6d4695),
[`49aaea41f`](49aaea4)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`c6d469595`](c6d4695)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`c6d469595`](c6d4695)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- remove experimental .action output handling
([#11998](#11998))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`c6d469595`](c6d4695)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

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

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`c6d469595`](c6d4695)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
QuietCraftsmanship pushed a commit to QuietCraftsmanship/Vercel that referenced this pull request Jul 6, 2025
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
## @vercel/[email protected]

### Patch Changes

- Revert "Revert "warn on mismatched corepack and detected package
managers"" ([#11887](vercel/vercel#11887))

## [email protected]

### Patch Changes

- Updated dependencies
\[[`cfcab3e95`](vercel/vercel@cfcab3e),
[`85db9e036`](vercel/vercel@85db9e0)]:
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`cfcab3e95`](vercel/vercel@cfcab3e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`cfcab3e95`](vercel/vercel@cfcab3e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

- remove experimental .action output handling
([#11998](vercel/vercel#11998))

## @vercel/[email protected]

### Patch Changes

- Updated dependencies
\[[`cfcab3e95`](vercel/vercel@cfcab3e)]:
    -   @vercel/[email protected]

## @vercel/[email protected]

### Patch Changes

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

## @vercel-internals/[email protected]

### Patch Changes

- Updated dependencies
\[[`cfcab3e95`](vercel/vercel@cfcab3e)]:
    -   @vercel/[email protected]

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
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