Skip to content
This repository has been archived by the owner on Apr 14, 2021. It is now read-only.

downgrade invalid specs to a warning for now #3856

Merged
merged 2 commits into from
Jul 20, 2015

Conversation

indirect
Copy link
Member

since invalid specs were allowed by 1.0-1.9, this change allows them in all 1.x versions. we'll go back to throwing an exception on invalid gemspecs in Bundler 2.0.

/cc @segiddins @smlance

since invalid specs were allowed by 1.0-1.9, we allow them in all 1.x
versions. we'll go back to throwing an exception on invalid gemspecs in
Bundler 2.0. (cc @smlance)

fixes #3688
@segiddins
Copy link
Member

😢 I don't really approve of this change, since it leaves bundler open to broken gemspecs, which is exactly what we were trying to fix

@indirect
Copy link
Member Author

I completely agree with that sentiment. 😢 It's really important to me that we not break working Bundles in minor releases, and it turns out that this started breaking previously-working bundles. Since we don't have a practical way to only target the broken bundles, and 2.0 is imminent, let's just blanketly implement the change there.

@segiddins
Copy link
Member

I don't think that backwards compatibility means we guarantee every bundle work, merely that every supported behavior remain so.

@indirect
Copy link
Member Author

You're totally right that simple backwards compatibility does not obligate us to do this. This is about taking care of users, making sure that they always feel like they can safely update without breaking anything. That's something specific to Bundler, and I think that Bundler has seen the level of adoption and willingness to upgrade that it has today because of that that level of commitment to avoiding breakage.

@indirect
Copy link
Member Author

Interestingly, it turns out that the spec that checks raised errors on invalid specs still passes even if only a warning is printed instead. We'll want to keep the expect(out).to_not include("ERROR REPORT") when we revert this on 2.0.

indirect added a commit that referenced this pull request Jul 20, 2015
downgrade invalid specs to a warning for now
@indirect indirect merged commit 61bf095 into 1-10-stable Jul 20, 2015
@indirect indirect deleted the aa-warn-invalid-gemspecs branch July 20, 2015 18:03
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants