Skip to content

Add JRuby 9.1.17.0 for testing - #35

Merged
eregon merged 1 commit into
ruby:masterfrom
headius:patch-1
Mar 11, 2020
Merged

eregon merged 1 commit into
ruby:masterfrom
headius:patch-1

Conversation

@headius

@headius headius commented Mar 9, 2020

Copy link
Copy Markdown
Collaborator

The jruby-launcher needs to be tested at least one major JRuby version back. In addition, there are users out there running JRuby 9.1.x that may be unable to upgrade at present.

The jruby-launcher needs to be tested at least one major JRuby version back. In addition, there are users out there running JRuby 9.1.x that may be unable to upgrade at present.
headius added a commit to jruby/jruby-launcher that referenced this pull request Mar 9, 2020
Once ruby/setup-ruby#35 lands this can be expanded to 9.1.17.0.
Comment thread ruby-builder-versions.js
],
"jruby": [
"9.2.9.0", "9.2.10.0", "9.2.11.0",
"9.1.17.0", "9.2.9.0", "9.2.10.0", "9.2.11.0",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you add 9.1.17.0 on its own line, much like 2.4.x vs 2.5.x in MRI above?

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

OK, I wasn't sure projects test against older JRuby versions or if they just use 9.2.x.y.

Could you also update the README, and regenerate dist/index.js with yarn run package ?
Like in https://github.com/ruby/setup-ruby/pull/34/files
(I should add that in CONTRIBUTING.md)

@deivid-rodriguez

deivid-rodriguez commented Mar 10, 2020 •

Copy link
Copy Markdown
Contributor

I was about to request this too. Since you still provide the legacy MRI 2.3 option, it makes sense to provide jruby-9.1 too since it's MRI 2.3 compatible.

@eregon

eregon commented Mar 10, 2020 •

Copy link
Copy Markdown
Member

I thought JRuby 9.2.x would be compatible with 2.4.x but actually it's 2.3.x (MRI 2.3.x is already EOL).
I had to add MRI 2.3.x to ease migration from TravisCI, so OK to add JRuby 9.1.x too, especially since it seems easy to build/setup.

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

I thought JRuby 9.2.x would be compatible

OK to add JRuby 9.2.x too

I assume you mean 9.1.x here.

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

(yes)

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

Not sure what else I am supposed to install to be able to run yarn run package:

$ yarn run package
yarn run v1.22.4
$ ncc build index.js -o dist
/bin/sh: ncc: command not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

Is it this?

https://www.npmjs.com/package/@zeit/ncc

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

Did you run yarn before to install the packages?
I don't have ncc installed system-wide and it works fine:

$ yarn run package
yarn run v1.17.3
$ ncc build index.js -o dist
ncc: Version 0.21.1
ncc: Compiling file index.js
164kB  dist/index.js
164kB  [827ms] - ncc 0.21.1
Done in 1.03s.

$ find . -name ncc
./node_modules/@zeit/ncc
./node_modules/@zeit/ncc/dist/ncc
./node_modules/.bin/ncc

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

i.e., please read the new CONTRIBUTING.md :)

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

i.e., please read the new CONTRIBUTING.md :)

Not sure why you would include this comment.

I did read that document but it wasn't clear from the formatting that I was supposed to run yarn rather than just installing it. It's just the word yarn in the document under the heading "Install dependencies". Perhaps it would be clearer to include text indicating that's a command to be run rather than just a list of dependencies.

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

Or include output showing a command prompt, so it's clear what are commands.

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

Running yarn run package creates a very large diff that I don't want to push. Is this expected?

https://gist.github.com/headius/f3e919c4331ed5a92bf56cefd0a2c80c

@headius

headius commented Mar 10, 2020

Copy link
Copy Markdown
Collaborator Author

#37

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

@eregon

eregon commented Mar 10, 2020

Copy link
Copy Markdown
Member

Or include output showing a command prompt, so it's clear what are commands.

OK, added that in 166761b

@eregon eregon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the PR, I'll merge this and do the tweaks on master.

@eregon
eregon merged commit 3dad7e2 into ruby:master Mar 11, 2020
@eregon

eregon commented Mar 11, 2020

Copy link
Copy Markdown
Member

@headius

headius commented Mar 11, 2020

Copy link
Copy Markdown
Collaborator Author

That seems because you edited package.json

I would not have touched that file... it must have been yarn. I only edited ruby-builder-versions.js and then ran the commands you specified in CONTRIBUTING.md. Looking at it today, seems like it's because the existing files were generated with an older version of yarn and/or ncc.

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.

3 participants