Skip to content

Conversation

@Earlopain
Copy link
Collaborator

Every time I run bundle exec rake, I get warnings about duplicate constants. This is solved in newer bundler versions:

/home/user/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/gems/bundler-2.5.16/lib/bundler/rubygems_ext.rb:290: warning: already initialized constant Gem::Platform::JAVA
/home/user/.rbenv/versions/4.0.0/lib/ruby/4.0.0/rubygems/platform.rb:279: warning: previous definition of JAVA was here
and many more

Bundler 4 requires ruby 3.2 but erb since 5.0 already imposes the same constraint.

Bundler now warns about using mswin etc. Should use windows instead.

Every time I run `bundle exec rake`, I get warnings about duplicate constants. This is solved in newer bundler versions:

```
/home/user/.rbenv/versions/4.0.0/lib/ruby/gems/4.0.0/gems/bundler-2.5.16/lib/bundler/rubygems_ext.rb:290: warning: already initialized constant Gem::Platform::JAVA
/home/user/.rbenv/versions/4.0.0/lib/ruby/4.0.0/rubygems/platform.rb:279: warning: previous definition of JAVA was here
```

Bundler 4 requires ruby 3.2 but erb since 5.0 already imposes the same constraint.

Bundler now warns about using mswin etc. Should use windows instead.

BUNDLED WITH
2.5.16
4.0.4
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Intentional whitespace change. This is how bundler does it now.

@kddnewton kddnewton merged commit 93fdf21 into ruby:main Jan 27, 2026
66 checks passed
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.

2 participants