Skip to content

[run] fix: limit lockfile conflict checks to Node.js ecosystem#21

Merged
insign merged 1 commit into
mainfrom
fix-lockfile-conflict-nodejs-12423709527055992849
May 13, 2026
Merged

[run] fix: limit lockfile conflict checks to Node.js ecosystem#21
insign merged 1 commit into
mainfrom
fix-lockfile-conflict-nodejs-12423709527055992849

Conversation

@insign
Copy link
Copy Markdown
Contributor

@insign insign commented Apr 28, 2026

Previously, run would throw a LockfileConflict error if multiple tools from the same ecosystem were detected and installed. This behavior was originally intended to catch conflicting lockfiles in the Node.js ecosystem (e.g. package-lock.json and yarn.lock), where using multiple package managers is an anti-pattern. However, it erroneously applied to all ecosystems. For example, in Ruby, a project commonly features both a Gemfile.lock and a Rakefile, representing bundler and rake, which naturally and gracefully coexist.

This commit restricts the strict lockfile conflict check to Ecosystem::NodeJs. In other ecosystems, tools like bundler and rake can now correctly be resolved via their defined priorities, resulting in a significantly more reliable task runner experience across various common project configurations.


PR created automatically by Jules for task 12423709527055992849 started by @insign

Previously, `run` would throw a `LockfileConflict` error if multiple
tools from the same ecosystem were detected and installed. This
behavior was intended for Node.js (where `package-lock.json`,
`yarn.lock`, etc., indicate competing tools), but it errantly applied
to other ecosystems. For example, in Ruby, a project may have both
a `Gemfile.lock` and a `Rakefile` representing `bundler` and `rake`,
which gracefully coexist.

This commit limits the lockfile conflict logic strictly to the
Node.js ecosystem, allowing other ecosystems to correctly rely
on priority resolution.

Co-authored-by: insign <1113045+insign@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@insign insign merged commit 9d72647 into main May 13, 2026
7 of 8 checks passed
@insign insign deleted the fix-lockfile-conflict-nodejs-12423709527055992849 branch May 13, 2026 07:24
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.

1 participant