Skip to content

Conversation

@johnnyshields
Copy link
Contributor

@johnnyshields johnnyshields commented Jan 28, 2025

Replaces PR #8379

Background

For over 2 years, Rails has included gem "tzinfo-data", platforms: %i[ windows jruby ] in its default Gemfile. The usage of :windows as a platform value is being widely adopted.

The Change

In the Gemfile DSL, this PR deprecates platform the following platform values :mswin, :mswin64, :mingw, :x64_mingw in favor of :windows. In addition, some related aliased methods are commented as deprecated.

This PR does not change/remove any actual functionality.

@johnnyshields
Copy link
Contributor Author

@deivid-rodriguez ready for your review.

Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

Copy link
Contributor Author

@johnnyshields johnnyshields left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@deivid-rodriguez Updated based on your feedback, thank you.

Copy link
Contributor

@deivid-rodriguez deivid-rodriguez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mind rebasing and squashing everything to a single commit?

@deivid-rodriguez
Copy link
Contributor

Oh, some additional specs that only run in "bundler 3 mode" need to be updated too.

@deivid-rodriguez deivid-rodriguez force-pushed the deprecate-legacy-windows-platforms2 branch from cf3addb to ccc374a Compare February 10, 2025 19:47
@deivid-rodriguez
Copy link
Contributor

I fixed the small issues CI had found, merging!

@deivid-rodriguez
Copy link
Contributor

deivid-rodriguez commented Feb 10, 2025

Well, the specs just showed that 96496e3 actually broke caching gems when legacy windows platforms are specified. Will look into it closer to see what we can do about it.

It went unnoticed because there's a bug in the :bundler spec filter that makes specs under the bundler: ">= 2.4.0" filter not actually be run.

@deivid-rodriguez
Copy link
Contributor

I created #8482 to fix that issue.

deivid-rodriguez and others added 2 commits February 13, 2025 13:03
Co-authored-by: johnnyshields <27655+johnnyshields@users.noreply.github.com>
… in favor of using `platform :windows`

This commit is only deprecation and does not change/remove any actual functionality.
@deivid-rodriguez deivid-rodriguez force-pushed the deprecate-legacy-windows-platforms2 branch from ccc374a to 0ca6dc3 Compare February 13, 2025 12:04
@deivid-rodriguez deivid-rodriguez merged commit a5b200f into ruby:master Feb 13, 2025
91 checks passed
@johnnyshields johnnyshields deleted the deprecate-legacy-windows-platforms2 branch February 13, 2025 16:44
@johnnyshields
Copy link
Contributor Author

Thanks Deivid, really appreciate your help to get this merged! 🎉

@deivid-rodriguez deivid-rodriguez changed the title Deprecate legacy windows platforms (mswin, mingw) in the Bundler DSL in favor of using platform :windows Deprecate legacy windows platforms (:mswin, :mingw) in Gemfile DSL in favor of :windows Jul 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants