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

Give option to generate Windows bin stubs regardless of host OS #2120

Open
oxygene opened this Issue Dec 20, 2017 · 2 comments

Comments

Projects
None yet
4 participants
@oxygene

oxygene commented Dec 20, 2017

I stumbled across the fact that when working with jruby on a Linux system, no Windows stub files are generated for installed gems. This is reasonable for a native ruby installation, but it would be nice to also generate windows stubs in a jruby environment because this would make the jruby folder portable also across OS types as long as there is a JRE available.

Please see the discussion over at jruby/jruby#4907

Being on a Windows host, currently also shebang scripts are generated, so the situation is a little bit assymetrical. I also noticed that when being on a Windows system the setting for shebang style seems to be ignored because I then get a #! jruby shebang even though jruby configures to be using /usr/bin/env. Should I open another issue for this?

@ghost

This comment has been minimized.

Show comment
Hide comment
@ghost

ghost Dec 22, 2017

I agree. Users should be able to generate stub files for any target platform desired; developers could work on one platform, but also may want to test for another platform as well.

I think @headius already showed the code that could generate it in that other discussion linked above.

What syntax could rubygems use in order to allow for this (if it is approved)? A naive one I would pick is --generate-windows-stubs but I really lack imagination here. :P

I guess it may be useful to hear any comment from a rubygem team core committer about it.

ghost commented Dec 22, 2017

I agree. Users should be able to generate stub files for any target platform desired; developers could work on one platform, but also may want to test for another platform as well.

I think @headius already showed the code that could generate it in that other discussion linked above.

What syntax could rubygems use in order to allow for this (if it is approved)? A naive one I would pick is --generate-windows-stubs but I really lack imagination here. :P

I guess it may be useful to hear any comment from a rubygem team core committer about it.

@segiddins

This comment has been minimized.

Show comment
Hide comment
@segiddins

segiddins Dec 23, 2017

Member

Something like --all-platform-binstubs would make sense to me

Member

segiddins commented Dec 23, 2017

Something like --all-platform-binstubs would make sense to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment