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

Test bad rubygems binstub + locked bundler behavior#6725

Closed
deivid-rodriguez wants to merge 1 commit intomasterfrom
fix_rubygems_binstub_and_locked_version
Closed

Test bad rubygems binstub + locked bundler behavior#6725
deivid-rodriguez wants to merge 1 commit intomasterfrom
fix_rubygems_binstub_and_locked_version

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

@deivid-rodriguez deivid-rodriguez commented Oct 5, 2018

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

The problem was that we have no specs to demostrate the issue in #6595, nor to prove the fix in ruby/rubygems#2426.

What was your diagnosis of the problem?

My diagnosis was that we need those specs.

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

My fix is to write the specs. They don't look very good though... 😅.

Why did you choose this fix out of the possible options?

I chose this fix because I couldn't think of any other ways to write them.

When running a rubygems bundler binstub with lock file locked to a
non-installed bundler version, one would get the cryptic error message:

```
can't find gem bundler (>= 0.a) with executable bundle (Gem::GemNotFoundException)
```

where one tends to think... What? How is it not found if I just run
it?!
@deivid-rodriguez deivid-rodriguez changed the title Fix bad rubygems binstub + locked bundler behavior Test bad rubygems binstub + locked bundler behavior Oct 5, 2018
@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

This fails, as expected, since the fix is not yet on rubygems master...

@segiddins
Copy link
Copy Markdown
Contributor

Should this test go in the rubygems repo?

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

Yeah, most likely...

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

Closing since I managed to write a spec in the rubygems PR that definitely feels more natural than what I'm doing here 👍.

@deivid-rodriguez deivid-rodriguez deleted the fix_rubygems_binstub_and_locked_version branch October 6, 2018 13: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