8000 `bundle exec <cmd>` gives "command not found" on JRuby+Windows · Issue #3256 · rubygems/rubygems · GitHub
[go: up one dir, main page]

Skip to content
bundle exec <cmd> gives "command not found" on JRuby+Windows #3256
@slonopotamus

Description

@slonopotamus
  1. Windows 10
  2. jruby 9.2.9.0 (2.5.7) 2019-10-30 458ad3e Java HotSpot(TM) 64-Bit Server VM 25.231-b11 on 1.8.0_231-b11 +jit [mswin32-x86_64] installed via official installer JRuby 9.2.9.0 Windows Executable (x64)
  3. Any Ruby project with Gemfile, for example takahashim/epubcheck-ruby
  4. gem install bundler (installs bundler-2.1.4 as of today)
  5. bundler install (installs rake-12.3.3 as of today for given example project)
  6. bundler exec rake

Expected: default rake target is executed
Actual:

bundler: command not found: rake
Install missing gem executables with `bundle install`

However, bundle exec rake test works!

This problem doesn't reproduce on Linux/MacOS. This problem doesn't reproduce with MRI. This problem happens on all of my Windows machines. Additionally, it happens on GitHub Actions Windows nodes, so I believe bug is not caused by my misconfiguration. I do not have any evidence that it works on any Windows machine.

Further testing shows that any bundle exec <cmd> fails, however bundle exec <cmd> <at least one more argument> works.

I'm not sure whether this is Bundler or JRuby issue.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0