Skip to content

Fix RUBYOPT usages #2233

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Fix RUBYOPT usages #2233

wants to merge 1 commit into from

Conversation

pirj
Copy link
Member

@pirj pirj commented Dec 16, 2019

There's a warning regarding an unknown argument to --disable, and it seems that --disable=gem is not entirely correct, should be --disable=gems.
Documentation (in Japanese).

Example output:

ruby: warning: unknown argument for --disable: `gem:'
ruby: warning: features are [gems, did_you_mean, rubyopt, frozen_string_literal].
ruby: warning: unknown argument for --enable: `rubygems'
ruby: warning: features are [gems, did_you_mean, rubyopt, frozen_string_literal].

@pirj pirj self-assigned this Dec 16, 2019
@pirj pirj force-pushed the fix-rubyopt-usage branch from 8b52295 to f285e69 Compare December 17, 2019 08:29
@pirj pirj marked this pull request as ready for review December 18, 2019 11:39
@pirj pirj requested review from JonRowe and benoittgt December 18, 2019 11:39
@benoittgt
Copy link
Member

benoittgt commented Dec 19, 2019

Don't you think all of those changes should be done on rspec-dev?

@JonRowe
Copy link
Member

JonRowe commented Dec 19, 2019

No I don't think these are necessary, unsetting rubyopts would have no affect if we were wrong about the rubyopts option we used. So this might be updated on later rubies but must be still valid...

@pirj
Copy link
Member Author

pirj commented Dec 19, 2019

It seems that Ruby is tolerable, and both gem/gems can be used. Using gem: was a mistake though.

@JonRowe
Copy link
Member

JonRowe commented Dec 19, 2019

The : is the joiner for environment variables... $A = $A:"more" is the bash equivalent of a += " more", so its quite possible to muck up the spacing but it's a valid bash expression.

@pirj
Copy link
Member Author

pirj commented Dec 19, 2019

It worked differently for some reason:

$ A='1'
$ B=$A:' 2'
$ echo $B
1: 2

@JonRowe
Copy link
Member

JonRowe commented Dec 19, 2019

My bad, I think it's actually just a $PATH thing

@benoittgt
Copy link
Member

@pirj do you think you could rebase from master?

@pirj pirj force-pushed the fix-rubyopt-usage branch from f285e69 to 2ab6b04 Compare December 19, 2019 17:13
@pirj
Copy link
Member Author

pirj commented Dec 19, 2019

Done, rebased.

@benoittgt
Copy link
Member

Thanks. This should normally help us for the next step rubygems/bundler#7505

I am happy to merge this to rspec-dev (#2239)

@JonRowe
Copy link
Member

JonRowe commented Dec 19, 2019

If we don't think this will change anything on the build, (I don't, but I'm willing to be convinced) I'd like to hold off making any changes with this until we have a green build.

There's a warning regarding an unknown argument to `--disable`, and it
seems that `--disable=gem` is not entirely correct, should be
`--disable=gems`
[Documentation](https://docs.ruby-lang.org/ja/latest/doc/spec=2frubycmd.html)
(in Japanese).

Example output:

    ruby: warning: unknown argument for --disable: `gem:'
    ruby: warning: features are [gems, did_you_mean, rubyopt, frozen_string_literal].
    ruby: warning: unknown argument for --enable: `rubygems'
    ruby: warning: features are [gems, did_you_mean, rubyopt, frozen_string_literal].
@pirj pirj force-pushed the fix-rubyopt-usage branch from 2ab6b04 to ebc5ff3 Compare December 20, 2019 19:08
@pirj
Copy link
Member Author

pirj commented Dec 20, 2019

Also green.

@JonRowe
Copy link
Member

JonRowe commented Dec 20, 2019

Does this make a difference? I'm inclined to leave it be otherwise?

@pirj
Copy link
Member Author

pirj commented Dec 20, 2019

Not a big deal, just two warnings less in the build. Can be addressed later.

@pirj pirj closed this Dec 20, 2019
@pirj pirj deleted the fix-rubyopt-usage branch December 20, 2019 21:25
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