Comments (17)
@dentarg That's something else.
I think the issue is JRuby seems to fail to find executables without arguments on Windows ( bundle exec rake default
works, but bundle exec rake
doesn't).
from setup-ruby.
I reported the bug to JRuby as well, since I think it might be a JRuby bug: jruby/jruby#6053
from setup-ruby.
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.
from setup-ruby.
I'm unsure what's going on.
Could you try if first installing latest bundler (gem install bundler
) helps? Shouldn't be necessary, but at least would rule out a Bundler bug already fixed.
from setup-ruby.
I assume JRuby on Windows should work out-of-the-box, right?
That's the aim but my impression is very few people run JRuby in Windows CI in general.
I know little about Windows, even less so about JRuby on Windows.
For instance, I had to figure out myself which launchers to keep and how to get a ruby
alias for jruby
(jruby/jruby#6042).
from setup-ruby.
One issue I noticed is ruby -v
picks up the system ruby when run with shell: bash
:
https://github.com/eregon/setup-ruby-test/runs/433744376
That's not good.
from setup-ruby.
Various issues here, once again with how to provide a ruby
alias for jruby
that works in both PowerShell and Bash:
ruby -v
in bash just fails on Windows if there is onlyruby.bat
: https://github.com/eregon/setup-ruby-test/runs/433780474?check_suite_focus=truecp jruby.sh ruby
fails because JRuby's.sh
launcher is broken on Windows in JRuby 9.2.9.0: https://github.com/eregon/setup-ruby-test/runs/433786338?check_suite_focus=truecp jruby.exe ruby.exe
fails in PwSh: https://github.com/eregon/setup-ruby-test/runs/433787577?check_suite_focus=true
from setup-ruby.
cp jruby.bash ruby
kind of works but incorrectly deals with double quotes ("
), which is fairly confusing: https://github.com/eregon/setup-ruby-test/runs/433791906?check_suite_focus=true
MRI handles the double quotes fine: https://github.com/eregon/setup-ruby-test/runs/433791899?check_suite_focus=true
from setup-ruby.
Here is a final run:
https://github.com/eregon/setup-ruby-test/runs/433804429?check_suite_focus=true
Still bundler: command not found: rake
.
This must be a JRuby bug, since it works fine on MRI, and installing rake via bundle install
generate very similar rake.bat
and rake
files for both MRI and JRuby.
Could you report it to https://github.com/jruby/jruby/issues ?
I'll fix the PATH issue, but long story short it doesn't seem the cause here.
from setup-ruby.
OK, this is fun bundle exec rake --version
and bundle exec rake default
work, but bundle exec rake
doesn't!
https://github.com/eregon/setup-ruby-test/runs/433859430
Run bundle exec rake --version
rake, version 13.0.1
Run bundle exec rake default
OK
Run bundle exec rake
bundler: command not found: rake
Install missing gem executables with `bundle install`
##[error]Process completed with exit code 1.
from setup-ruby.
I released 1.41.1 which fixes the PATH so there is no default MRI in PATH, just JRuby.
Now ruby --version
and bundle exec rake --version
works in both PwSh and Bash.
The rest (bundle exec rake
broken) is I believe a JRuby bug, please report it there, I don't think I can do anything about it.
from setup-ruby.
@eregon thanks for debugging the issue, I saw your comment at jruby/jruby-launcher#29 (comment), is that something else so I should file another jruby issue about this?
from setup-ruby.
@slonopotamus Thanks!
I would guess a JRuby issue since it works fine on MRI, and I would think the code for bundle exec
doesn't really rely on the interpreter name. But one never knows.
from setup-ruby.
This was fixed on Bundler side: rubygems/rubygems#3256 (comment)
from setup-ruby.
Seems to be an issue again: jruby/jruby#6053 (comment)
from setup-ruby.
Seems to be an issue again: jruby/jruby#6053 (comment)
This was fixed on Bundler side: rubygems/rubygems#3256 (comment)
Just an update for anyone finding this thread via search or something, it was concluded that the issue is still with Bundler, rubygems/rubygems#3256 is still open at the time of writing this.
from setup-ruby.
Another update, it is a bug in JRuby, fixed on master but not yet released: jruby/jruby#6745
from setup-ruby.
Related Issues (20)
- BUNDLED_WITH from Gemfile.lock not being honored HOT 2
- Support Ruby 3.3 HOT 2
- Setting bundler to "default" still installs latest bundler HOT 1
- An error occurred while installing google-protobuf (3.25.1), and Bundler cannot continue HOT 4
- Updat
- macos-14-arm64 detected as self-hosted HOT 2
- head version for windows platform is uncompleted build HOT 5
- Add support for GitHub tokens HOT 5
- https://github.com/ruby/setup-ruby/pull/532/files is lost from `master` HOT 1
- Linux ARM support HOT 33
- Unknown version 3.3 for ruby on ubuntu-22.04 HOT 1
- Unable to pick 3.2.2 version when only git diff files are in the scope HOT 5
- Ruby v3.2.3 support HOT 1
- Support non `runner` user on self-hosted runners HOT 3
- Missing Ruby 3.3.1 on Windows HOT 5
- Download link is invalid for Ruby 2.5.9 on macos 13 arm64
- Ruby version should be read from Gemfile.lock by default HOT 6
- Faild in ubuntu-24.04 runner HOT 4
- Request: Support Windows on Arm64 HOT 7
- Download link is invalid for macos-latest (macos-13) with Ruby 2.5 HOT 12
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from setup-ruby.