-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Stimulus] Dependabot NPM no longer updates due to Stimulus/UX vendor file paths in package.json
#58678
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
Comments
Is there missing information or is it not reproducable? Currently this is holding back dependabot from updating my NPM packages If someone has a workaround/solution, it would be very much appreciated. |
🦗 |
@ToshY In my opinion, the only workaround is to commit the entire vendor. 🤯 |
Thanks for your suggestion @tomas-kulhanek. I can see why that might work but I rather not sway from (my own) best practices by starting commiting all dependencies just because of a couple stimulus/ux bundles are causing this problem. 🙁 I'm still somewhat surprised I haven't seen many other Symfony users mention or experience this, but surely there must be a less drastic workaround to handle this problem, maybe in the dependabot config or in the package.json, but I'm just not sure how. |
I agree with you. Committing all dependencies is not a good idea. I'm also surprised that I haven't found anyone else besides you who has the same problem. Does anyone use dependabot or does everyone commit dependencies? :( |
🦗 |
Same as dependabot/dependabot-core#8898 |
@ToshY you can use Renovate or you can use npm package :) https://www.npmjs.com/package/@symfony |
Hey @tomas-kulhanek , Thanks for the suggestion, I'll try the NPM package 👍 |
@ToshY its worked for me |
Nice that they started publishing the assets separately starting with |
Yes, it is related to Symfony Flex and package.json auto-synchronization. Since Flex 1.22.0 and 2.5.0, it seems you can disable this behavior by configuring |
Awesome that works. Thanks for letting us know @Kocal ! |
Glad it's working! I will update UX npm-packages |
Symfony version(s) affected
7.0
Description
Dependabot no longer updates NPM packages in
package.json
when it depends on assets from bundles like Stimulus (or other UX packages). These have references to local file paths likefile:vendor/symfony/stimulus-bundle/assets
.The error in logging that Dependabot shows is as follows:
How to reproduce
/app/package.json
/app/package-lock.json
/app/.github/dependabot.yml
Possible Solution
Document recommended steps to workaround this problem.
Additional Context
#58405
The text was updated successfully, but these errors were encountered: