Skip to content

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