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

Handle additional edge cases in puppet.gemspec #9508

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

joshcooper
Copy link
Contributor

@joshcooper joshcooper commented Oct 24, 2024

Previously, running gem build puppet.gemspec on windows included the windows-specific runtime dependencies in the "ruby" puppet-.gem, because of the Gem.win_platform? condition.

Now add the runtime dependencies if we're running on that platform via bundler. or if we're building a gem for that platform. In the latter case, it doesn't matter which platform we're running on.

This also relaxes the darwin and mingw platforms, to future proof against other variations of darwin and mingw ucrt.

Follow up to #9505

Previously, running `gem build puppet.gemspec` on windows included the
windows-specific runtime dependencies in the "ruby" puppet-<version>.gem,
because of the `Gem.win_platform?` condition.

Now add the runtime dependencies if we're running on that platform via bundler.
or if we're building a gem for that platform. In the latter case, it doesn't
matter which platform we're running on.

This also relaxes the darwin and mingw platforms, to future proof against other
variations of darwin and mingw ucrt.
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.

1 participant