-
Notifications
You must be signed in to change notification settings - Fork 344
Add bundler Dependency to gemspec #453
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
Conversation
|
Thanks for the pull request, and welcome! The Rails team is excited to review your changes, and you should hear from @rafaelfranca (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
lib/spring/test/acceptance_test.rb
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we always advertise to not use bundle exec ... so with_clean_env would be better :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think error on travis (check this) can be on user side as well (?). Looking at the test won't help him a lot cause it won't be apparent that command passing in test is not actually:
bin/springbut
bundle exec bin/springAlso, some of the commands being passed to with_clean_env are:
# gives syntax error near unexpected token `('
# can be solved by just removing '('
(gem list bundler | grep bundler) || gem install bundler
# not sure from where does this gets passed but some jugglery will be needed
bundle check || bundle update --retry=2
## some gem install command## more commands from other files calling the same app.run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@grosser Do you really want me to change it to with_clean_env?
Actually, it needs just 2 lines of change.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm confused now :D
Do you think this is better or with_clean_env is better ?
I think either would work, I was just sad to see bundle exec being added all over the place + that it uses a pattern we try to discourage ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with_clean_env feels like we are secretly adding bundle exec to every command.
However, with_clean_env is lot cleaner and gets the job done. Also, issue of conflicting bundler version seems to be only specific for travis runs. Locally, I have bundler 1.10.6 and I don't get any error.
4461ecb to
666abfa
Compare
|
@grosser I changed it to |
|
looks good to me ... but could break all kinds of stuff ... @jonleighton want to have a look ? |
Are you referring to change of order of |
|
ahhh you are right! :D |
TBH, I am not sure. It does add |
|
Shit! I just noticed it. I did reset hard and forgot to add the most important line -_- |
|
:D |
666abfa to
27ab0ff
Compare
|
Fixed it!
I think it will need changelog that now spring has bundler as hard dependency. |
|
👍 @jonleighton / @rafaelfranca looks good ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why change this? It makes it less readable IMO
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bundle exec (gem list bundler | grep bundler) || gem install bundler gives following error:
bash: syntax error near unexpected token `('
bundle exec was added to commands cause otherwise it was giving Gem::LoadError for conflicting bundler versions on travis
27ab0ff to
ad4aede
Compare
|
Can someone please suggest tests so that #456 doesn't happen again? I can't think of anything reasonable. |
|
closed in favor of #458 |
bundle execwas added to acceptance test cause otherwise it was giving Gem::LoadError for conflicting bundler versions.An alternate solution would have been to add it here:
I felt it was non-intuitive. Additionally, above code block doesn't get called only from
Spring::Test::AcceptanceTest, so it would need changes on many different files.EDIT:
Resolves: #275