Skip to content
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

fix(npm): replace pnpm overrides in right position #28606

Merged
merged 1 commit into from
Apr 24, 2024

Conversation

viceice
Copy link
Member

@viceice viceice commented Apr 23, 2024

Changes

Replace pnpm overrides deps on right position

Context

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please select one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • No unit tests but ran on a real repository, or
  • Both unit tests + ran on a real repository

@rarkins
Copy link
Collaborator

rarkins commented Apr 23, 2024

Can we wait for a reproduction repo to verify it against?

@viceice
Copy link
Member Author

viceice commented Apr 24, 2024

Can we wait for a reproduction repo to verify it against?

https://github.com/containerbase/base/blob/b95329c58c0437b23424da896e3df463b6d9a7a6/package.json#L34

will convert to pnpm.overrides to validate after forking 🤗

@viceice
Copy link
Member Author

viceice commented Apr 24, 2024

working sample with this PR

@viceice
Copy link
Member Author

viceice commented Apr 24, 2024

failing on app

DEBUG: latest commit (branch="renovate/esbuild-0.x")
{
  "branchName": "main"
  "latestCommitDate": "2024-04-24T08:35:35+02:00"
}

DEBUG: manager.getUpdatedPackageFiles() reuseExistingBranch=false (branch="renovate/esbuild-0.x")
DEBUG: npm.updateDependency(): overrides.esbuild = 0.20.2 (branch="renovate/esbuild-0.x")
DEBUG: updateDependency error (branch="renovate/esbuild-0.x")
{
  "err": {
    "message": "Cannot read properties of undefined (reading 'esbuild')",
    "stack": "TypeError: Cannot read properties of undefined (reading 'esbuild')\n    at updateDependency (/usr/local/renovate/lib/modules/manager/npm/update/dependency/index.ts:162:58)\n    at getUpdatedPackageFiles (/usr/local/renovate/lib/workers/repository/update/branch/get-updated.ts:221:30)\n    at processTicksAndRejections (node:internal/process/task_queues:95:5)\n    at processBranch (/usr/local/renovate/lib/workers/repository/update/branch/index.ts:460:19)\n    at writeUpdates (/usr/local/renovate/lib/workers/repository/process/write.ts:166:17)\n    at update (/usr/local/renovate/lib/workers/repository/process/extract-update.ts:214:11)\n    at Object.renovateRepository (/usr/local/renovate/lib/workers/repository/index.ts:87:19)\n    at attributes.repository (/usr/local/renovate/lib/workers/global/index.ts:217:11)\n    at start (/usr/local/renovate/lib/workers/global/index.ts:202:7)\n    at /usr/local/renovate/lib/renovate.ts:18:22"
  }
}

@viceice viceice enabled auto-merge April 24, 2024 07:24
@karlhorky
Copy link
Contributor

karlhorky commented Apr 24, 2024

working sample with this PR

Oh TIL that there's a renovate-reproductions/base repo, this looks very useful 👀 ❤️

Would be great to have this as a part of the open source issue / discussion creation process, to make it super easy to create good reproductions for Renovate

@viceice viceice added this pull request to the merge queue Apr 24, 2024
@Algram
Copy link

Algram commented Apr 24, 2024

@viceice Thanks for the speedy help! LGTM!

Merged via the queue into main with commit 0ebd47a Apr 24, 2024
37 checks passed
@viceice viceice deleted the fix/npm/pnpm-overrides-replacement branch April 24, 2024 07:51
@HonkingGoose
Copy link
Collaborator

working sample with this PR

Oh TIL that there's a renovate-reproductions/base repo, this looks very useful 👀 ❤️

* [github.com/renovate-reproductions/base/](https://github.com/renovate-reproductions/base/)

Would be great to have this as a part of the open source issue / discussion creation process, to make it super easy to create good reproductions for Renovate

See this discussion:

@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 37.320.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

karlhorky added a commit to karlhorky/renovate-config that referenced this pull request Apr 26, 2024
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 25, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants