Skip to content
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

Windows gem dependency isn't properly set #31

Open
tas50 opened this issue Feb 10, 2021 · 0 comments
Open

Windows gem dependency isn't properly set #31

tas50 opened this issue Feb 10, 2021 · 0 comments

Comments

@tas50
Copy link

tas50 commented Feb 10, 2021

This gem requires win32-security on Windows hosts, but that's not properly defined in the gemspec. Since the gemspec is parsed by rubygems and uploaded the logic to include that windows depedencies on windows is only included when the gem is uploaded from a windows host. Instead you want to define a universal-mingw32 gemspec that adds additional dependencies on Windows. Then you push both platforms of gems via the two gemspec and windows hosts automatically pull the correct platform with the additional dependency. An example of doing this is the chef gem which includes two gemspecs:

https://github.com/chef/chef/blob/master/chef.gemspec
https://github.com/chef/chef/blob/master/chef-universal-mingw32.gemspec

and produces different gem platforms on rubygems:

https://rubygems.org/gems/chef

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

No branches or pull requests

1 participant