Skip to content

Remove external tool version checks from bundle env#9593

Merged
hsbt merged 3 commits into
masterfrom
remove-tool-versions-from-env
Jun 4, 2026
Merged

Remove external tool version checks from bundle env#9593
hsbt merged 3 commits into
masterfrom
remove-tool-versions-from-env

Conversation

@hsbt
Copy link
Copy Markdown
Member

@hsbt hsbt commented Jun 4, 2026

What was the end-user or developer problem that led to this PR?

Keeping up with each version manager's invocation convention is not worth the maintenance cost.

Fixed #9528

If someone still need this, I will create bundle tool-env plugin or something.

What is your fix for the problem, implemented in this PR?

Removed that category and move Git version to main section.

Make sure the following tasks are checked

Keeping up with each version manager's invocation convention is not
worth the maintenance cost. chruby in particular is wrapped as a shell
function and cannot be run as `chruby --version` at all, so the line
always reported a missing version.

#9528

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings June 4, 2026 02:02
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR simplifies bundle env output by removing the “Tools” section (and the associated external tool version checks) and surfacing the Git version directly in the main “Environment” table, reducing ongoing maintenance for version-manager-specific probing.

Changes:

  • Removed bundle env “Tools” section and helper methods used to probe external tool versions (e.g., rbenv/RVM/chruby).
  • Moved Git version reporting into the main “Environment” table.
  • Updated spec/bundler/env_spec.rb expectations to match the new output formatting and removed the deleted helper’s spec.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
bundler/lib/bundler/env.rb Removes external tool version probing and relocates Git version reporting into the main environment output.
spec/bundler/env_spec.rb Updates assertions for the new bundle env output formatting and deletes tests for removed helpers.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +102 to +103
out << ["Git", git_version]

Comment thread spec/bundler/env_spec.rb
Comment on lines +225 to 226
expect(described_class.report).to include("Git 1.2.3 (Apple Git-BS)")
end
hsbt and others added 2 commits June 4, 2026 12:06
Guards against accidentally reintroducing the removed external tool
version output.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
`bundle env` no longer reports these gems, so add a `gem list` step
before the uninstall instruction.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@hsbt hsbt merged commit a1c75ba into master Jun 4, 2026
136 of 138 checks passed
@hsbt hsbt deleted the remove-tool-versions-from-env branch June 4, 2026 04:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chruby version check fails because chruby is a function

2 participants