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

Revert resolving all Gemfile platforms automatically #4052

Merged
merged 1 commit into from Nov 10, 2020

Conversation

deivid-rodriguez
Copy link
Member

What was the end-user or developer problem that led to this PR?

This is the second time I revert this change, since I have found some cases where this might cause pain, and I want to battle test multiplatform fixes before attempting this.

See #4018 for more on this.

What is your fix for the problem, implemented in this PR?

My fix is to revert resolving only for the current platform like it's been done historically.

I think ideally, when we introduce something like this, we should consider making it opt-in by recording this intention in the Gemfile, maybe with an unscoped platforms DSL, or by an explicit CLI flag, like bundle install --all-platforms, or bundle lock --all-platforms.

The part I'm not reverting is removing the warning about dependencies being unused under the current platform, since it is pretty much expected on a multiplatform context.

Closes #4018.

Make sure he following tasks are checked

This is the second time I revert this change, since I have found some
cases where this might cause pain, and I want to battle test
multiplatform fixes before attempting this.

I think ideally, when we introduce something like this, we should
consider making it opt-in by recording this intention in the `Gemfile`,
maybe with an unscoped `platforms` DSL, or by an explicit CLI flag, like `bundle
install --all-platforms`, or `bundle lock --all-platforms`.

The part I'm not reverting is removing the warning about dependencies
being unused under the current platform, since it is pretty much
expected on a multiplatform context.
@deivid-rodriguez
Copy link
Member Author

I will revisit this for the next version.

@deivid-rodriguez deivid-rodriguez merged commit a9b3694 into master Nov 10, 2020
@deivid-rodriguez deivid-rodriguez deleted the revert_automultiplatform_again branch November 10, 2020 14:54
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Revert resolving all Gemfile platforms automatically

(cherry picked from commit a9b3694)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Revert resolving all Gemfile platforms automatically

(cherry picked from commit a9b3694)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Revert resolving all Gemfile platforms automatically

(cherry picked from commit a9b3694)
deivid-rodriguez added a commit that referenced this pull request Dec 7, 2020
Revert resolving all Gemfile platforms automatically

(cherry picked from commit a9b3694)
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.

Consider delaying the change to resolve against all Gemfile platforms by default
2 participants