Dependabot crashes while attempting to make changes to submodules when updating NPM packages #11327
Open
1 task done
Labels
L: dart:pub
Dart packages via pub
L: docker
Docker containers
L: git:submodules
Git submodules
L: javascript
L: ruby:bundler
RubyGems via bundler
T: bug 🐞
Something isn't working
Is there an existing issue for this?
Package ecosystem
npm
Package manager version
1.22.22
Language version
Node 22
Manifest location and content before the Dependabot update
There is one
/yarn.lock
file. It contains dependencies from:package.json
filepackage.json
files withincode/*
directories as yarn workspacespackage.json
files withinlib/*
directrories, each directory being git submodule. I think this is the key information, as this is what causes problems.dependabot.yml content
I'm using Dependabot in private repo, so cannot link it. But here are relevant contents:
Updated dependency
Any dependency which needs updating in this repo
/yarn.lock
file, but is defined inpackage.json
which is located within git submodule. The change must be so that it causes modifications also inpackage.json
(e.g. strict version string without^
prefix).What you expected to see, versus what you actually saw
I expected the dependency part of git submodule definition to be left out.
Instead Dependabot action crashes (not full log, but what I think is relevant part. I can provide full log if needed as well):
Native package manager behavior
Not applicable for us - we use strict version specs everywhere, so native manager never updates them.
Images of the diff or a link to the PR, issue, or logs
Everything is in private repos, so unfortunately can not share anything.
Smallest manifest that reproduces the issue
I guess with a file structure like this:
Running Dependabot on this git submodule -enabled setup should result in the same error I am getting. Notice that the version spec in the
/submodule/package.json
must be fixed in order for Dependabot to attempt to update it and result in crash.The text was updated successfully, but these errors were encountered: