setup-ruby: JRuby on Windows: "bundler: command not found: rake"
jobs:
build:
name: '${{ matrix.os }}: ${{ matrix.ruby }}'
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, windows-latest ]
ruby: [ 2.4, 2.5, 2.6, 2.7, jruby, truffleruby ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
- run: ruby -v
- run: bundle install --jobs 4 --retry 3
- run: bundle exec rake
Output from the bundle exec rake step
Run bundle exec rake
bundle exec rake
shell: C:\Program Files\PowerShell\6\pwsh.EXE -command ". '{0}'"
bundler: command not found: rake
Install missing gem executables with `bundle install`
##[error]Process completed with exit code 1.
The bundle install step before do install rake
I assume JRuby on Windows should work out-of-the-box, right? Am I doing something wrong?
I saw #12, so I checked the asciidoctor-epub3 repo, they are installing bundler themselves, maybe that makes a difference somewhere
Status: see https://github.com/ruby/setup-ruby/issues/18#issuecomment-583856414 and below
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 17 (13 by maintainers)
Commits related to this issue
- TruffleRuby not supported on Windows Exclude JRuby for now (ruby/setup-ruby#18) — committed to dentarg/dyno_metadata by dentarg 4 years ago
- Workaround Windows JRuby issue in CI See https://github.com/ruby/setup-ruby/issues/18#issuecomment-583777248 — committed to dentarg/dyno_metadata by dentarg 4 years ago
- CI: Use rake default because of bug on windows See https://github.com/ruby/setup-ruby/issues/18 — committed to paulgoetze/weka-jruby by paulgoetze 4 years ago
I reported the bug to JRuby as well, since I think it might be a JRuby bug: https://github.com/jruby/jruby/issues/6053
@dentarg That’s something else.
I think the issue is JRuby seems to fail to find executables without arguments on Windows (
bundle exec rake defaultworks, butbundle exec rakedoesn’t).I reported this bug to Bundler some time ago: rubygems/bundler#7602. It can be reproduced on any Windows machine with JRuby, it isn’t specific to GitHub Actions.