You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR I did was ruby/psych#432, and of course, someone didn't like it.
Thanks for the jruby-head plans. and thanks for all your work with the builds. I don't think the Travis builds were/are tested, at least not fully. So now that yours are, I'm encouraging people to use them.
As you may have seen, I've got actions-ruby allowing ruby-loco mingw and mswin builds to be used. I don't think the ruby-head mingw build you're using runs test-all, and with MRI Ruby, that's a must.
I've always been about master building & testing...
@MSP-Greg I'm looking at having jruby-head on Windows.
However I'm hitting some very strange behavior where tar tf lists bin/jruby.exe, but after tar xf the file is not there! On Linux I can extract and I see it's there. And bin/jrubyw.exe extracts fine. https://github.com/ruby/jruby-dev-builder/runs/448013601
Any idea what's going on?
I guess I could try to use the .zip instead, but such a major bug in tar on Windows seems surprising. Also using a .tar.gz for all platforms avoids code duplication.
Finally, on .tar.gz release archives of JRuby, I could extract jruby.exe just fine.
I downloaded it, extracted with 7z GUI, and running jruby --version outputs Cannot find Java 1.5 or higher. which I assume is an error message in the exe file?
Now, why tar is misbehaving, that might take me a few minutes to figure put...
Looks like both tar and unzip have the issue, and they consider two files named jruby and jruby.exe to be the same apparently on Windows? Is that a Windows or filesystem restriction maybe?
I managed to work around by explicitly not extracting bin/jruby (so only bin/jruby.exe).
So it looks like tar inside the Bash shell misbehaves and does not extract jruby.exe.
Running tar in the default Windows shell works and extracts both jruby and jruby.exe.
Activity
eregon commentedon Feb 12, 2020
Yes, it's in the plans.
There is already https://github.com/ruby/jruby-dev-builder but no builds there yet.
eregon commentedon Feb 12, 2020
Which repo is that, and how did you deal with jruby-head there?
MSP-Greg commentedon Feb 12, 2020
Psych. For the time being, I left the workflow using rvm for jruby and jruby-head. See: https://github.com/ruby/psych/blob/master/.github/workflows/ubuntu-jruby.yml
The PR I did was ruby/psych#432, and of course, someone didn't like it.
Thanks for the jruby-head plans. and thanks for all your work with the builds. I don't think the Travis builds were/are tested, at least not fully. So now that yours are, I'm encouraging people to use them.
As you may have seen, I've got actions-ruby allowing ruby-loco mingw and mswin builds to be used. I don't think the ruby-head mingw build you're using runs test-all, and with MRI Ruby, that's a must.
I've always been about master building & testing...
eregon commentedon Feb 15, 2020
@MSP-Greg I'm looking at having jruby-head on Windows.
However I'm hitting some very strange behavior where
tar tflistsbin/jruby.exe, but aftertar xfthe file is not there! On Linux I can extract and I see it's there. Andbin/jrubyw.exeextracts fine.https://github.com/ruby/jruby-dev-builder/runs/448013601
Any idea what's going on?
I guess I could try to use the
.zipinstead, but such a major bug intaron Windows seems surprising. Also using a.tar.gzfor all platforms avoids code duplication.Finally, on .tar.gz release archives of JRuby, I could extract jruby.exe just fine.
eregon commentedon Feb 15, 2020
When trying with
unzipI see:Not sure what that means.
MSP-Greg commentedon Feb 15, 2020
Give me a second...
I downloaded it, extracted with 7z GUI, and running
jruby --versionoutputsCannot find Java 1.5 or higher.which I assume is an error message in the exe file?Now, why tar is misbehaving, that might take me a few minutes to figure put...
eregon commentedon Feb 15, 2020
Looks like both tar and unzip have the issue, and they consider two files named
jrubyandjruby.exeto be the same apparently on Windows? Is that a Windows or filesystem restriction maybe?I managed to work around by explicitly not extracting
bin/jruby(so onlybin/jruby.exe).MSP-Greg commentedon Feb 15, 2020
There's a few tar.exe files on the Actions Windows image. I don't know what node uses, and we're using node for the extraction, right?
Let me check the MSYS tar and see what it does...
MSP-Greg commentedon Feb 15, 2020
Using the MSYS2 tar or the git tar, the below worked. Does that help?
eregon commentedon Feb 15, 2020
I'm using just
tarin thebashshell on Windows.The command succeeds, but does not extract
bin/jruby.exe.eregon commentedon Feb 15, 2020
For https://repo1.maven.org/maven2/org/jruby/jruby-dist/9.2.9.0/jruby-dist-9.2.9.0-bin.tar.gz it works fine, probably because
jrubyis beforejruby.exe.OTOH, for https://oss.sonatype.org/content/repositories/snapshots/org/jruby/jruby-dist/9.2.10.0-SNAPSHOT/jruby-dist-9.2.10.0-20200214.210645-79-bin.tar.gz
jruby.exeis beforejruby, and it seems tar/unzip consider it should "override/delete" jruby.exe for some reason.MSP-Greg commentedon Feb 15, 2020
Oddly enough, it was the 2nd file that I used. I never checked to see what Actions uses for Windows bash. Maybe I should do that...
MSP-Greg commentedon Feb 15, 2020
This is messy. I'm working on it.
MSP-Greg commentedon Feb 16, 2020
I think I'm losing my mind. I thought I posted this AM.
Anyway, Windows 10 and the image on Actions both have a Windows tar command. Also, the mv command was doing some odd things.
The following worked, although Windows specific:
eregon commentedon Feb 16, 2020
Thanks! I'll try that.
eregon commentedon Feb 16, 2020
So it looks like
tarinside the Bash shell misbehaves and does not extractjruby.exe.Running
tarin the default Windows shell works and extracts bothjrubyandjruby.exe.eregon commentedon Feb 16, 2020
FWIW, jruby-head seems currently broken on Windows: jruby/jruby#6073
Maybe I should just make it available on non-Windows first.
MSP-Greg commentedon Feb 16, 2020
Maybe I need to install Java. How would one detect that the Ruby installation is JRuby on Windows?
eregon commentedon Feb 16, 2020
We found out the root issue, see jruby/jruby-launcher#29 (comment)
MSP-Greg commentedon Feb 16, 2020
Yes. I guess I broke it (ruby/rubygems#2119). Sorry...
EDIT: Reading further, I guess I fixed it in ruby/rubygems#2876.
MSP-Greg commentedon Feb 16, 2020
Running jruby-head, I just did
Which seems to have install RG 3.1.2 and Bundler 2.1.2, but it creates binstubs named jgem & jbundle.
The old gem binstub works...
Copied
jbundleandjbundle.batand renamed withoutj, and all is good.eregon commentedon Feb 16, 2020
No worry, my jruby-head builds work now.
Here is the release for setup-ruby: https://github.com/ruby/setup-ruby/releases/tag/v1.17.0
Could you close this issue?
eregon commentedon Jul 21, 2025
For the record, just
mv jruby-10.0.1.0 /c/Users/runneradmin/.rubies/jruby-10.0.1.0in the Bash shell also makes jruby.exe disappear:https://github.com/ruby/ruby-builder/actions/runs/16427049853/job/46419853977#step:11:35
https://github.com/ruby/ruby-builder/actions/runs/16427049853/job/46419853977#step:11:76