Splitting rangeStrategy by depedencyType fails yarn immutable #20968
Replies: 2 comments 7 replies
-
This part sounds like a bug:
(if I understand it right) You say Renovate updates the package.json, runs Yarn, but then commits only the lock file change and not the package.json change? If you can reproduce this, we can debug and hopefully fix it, although that may not be the entirety of what you need. As a general rule, you'll find things a lot easier if you pin dependencies, and for devDependencies there's very few reasons why not to (they are not used downstream..) |
Beta Was this translation helpful? Give feedback.
-
Hi there, We have found that there's a problem with the logs. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsIf you're running self-hosted, run with Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
|
Beta Was this translation helpful? Give feedback.
-
Type of discussion.
I'm proposing an idea
Tell us more.
We maintain a few yarn monorepos that are consumed by a ~15ish apps. We previously used
"rangeStategy": "update-lockfile"
for those monorepos. We found that some apps would lag behind in updates because they were accepting updates from internal packages but not from 3rd parties.We decided to try this config to help address the problems:
The goal being to maintain update-lockfile for any package bumps that the consumer would not directly action on, but force consumers to update some 3rd party packages by updating the dependencies of our packages.
This accomplishes the goal decently well, but the issue is that now we get broken Renovate PRs for our monorepos. If a 3rd party package (like sentry) is listed as dependency on one package, but is listed as a devDependency on another package (like the root package.json), then Renovate fails to update that dependency.
We require yarn immutable installs in CI and the Renovate PRs are failing that. What I think is happenging is that renovate is updating the package.json for the package that lists sentry as adependency and updating the lockfile based on that,
but then not committing the package.json for that package, leading to a failed immutable installbut then not updating the lockfile to include the bump in thepackage.json
.So my question is whether this is even a good idea. Is this a bug or just that we're doing something unexpected so it behaves weirdly. Should we just switch back to the "update-lockfile" to avoid this problem entirely?
For the record, we've had this issue with a few different packages, sentry, babel, webpack, and others.
Yarn Install Failure
Beta Was this translation helpful? Give feedback.
All reactions