Skip to content

Handle additional edge cases in puppet.gemspec#9508

Closed
joshcooper wants to merge 1 commit intopuppetlabs:mainfrom
joshcooper:gemspec
Closed

Handle additional edge cases in puppet.gemspec#9508
joshcooper wants to merge 1 commit intopuppetlabs:mainfrom
joshcooper:gemspec

Conversation

@joshcooper
Copy link
Copy Markdown
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.
@joshcooper joshcooper closed this Feb 19, 2026
@joshcooper joshcooper deleted the gemspec branch February 19, 2026 16:57
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