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

Add machinery for printing major deprecations #4702

Merged
merged 9 commits into from Jun 24, 2016
Merged

Conversation

segiddins
Copy link
Member

First step towards handling all of #4695

\c @RochesterinNYC @indirect

major_deprecation("Bundler will only support ruby >= 2.0, you are running #{RUBY_VERSION}")
end
return if Bundler.rubygems.provides?(">= 2")
major_deprecation("Bundler will only support rubygems >= 2.4, you are running #{self.class.version}")
Copy link
Member

Choose a reason for hiding this comment

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

I thought we said RubyGems 2.0 and above?

@segiddins
Copy link
Member Author

@indirect r?

@indirect
Copy link
Member

@homu r+

@homu
Copy link
Contributor

homu commented Jun 23, 2016

📌 Commit 53737e0 has been approved by indirect

homu added a commit that referenced this pull request Jun 23, 2016
Add machinery for printing major deprecations

First step towards handling all of #4695

\c @RochesterinNYC @indirect
@homu
Copy link
Contributor

homu commented Jun 23, 2016

⌛ Testing commit 53737e0 with merge 81f96b9...

@homu
Copy link
Contributor

homu commented Jun 23, 2016

💔 Test failed - status

@homu
Copy link
Contributor

homu commented Jun 24, 2016

📌 Commit 2cc7c46 has been approved by indirect

@segiddins
Copy link
Member Author

@homu r=indirect

@homu
Copy link
Contributor

homu commented Jun 24, 2016

💡 This pull request was already approved, no need to approve it again.

@homu
Copy link
Contributor

homu commented Jun 24, 2016

📌 Commit 2cc7c46 has been approved by indirect

@homu
Copy link
Contributor

homu commented Jun 24, 2016

💡 This pull request was already approved, no need to approve it again.

@homu
Copy link
Contributor

homu commented Jun 24, 2016

⚡ Test exempted - status

@homu homu merged commit 2cc7c46 into master Jun 24, 2016
homu added a commit that referenced this pull request Jun 24, 2016
Add machinery for printing major deprecations

First step towards handling all of #4695

\c @RochesterinNYC @indirect
@segiddins segiddins deleted the seg-major-deprecations branch June 24, 2016 19:55
segiddins pushed a commit that referenced this pull request Jun 27, 2016
Add machinery for printing major deprecations

First step towards handling all of #4695

\c @RochesterinNYC @indirect

(cherry picked from commit dca6d26)
@coilysiren coilysiren modified the milestone: Release Archive Sep 22, 2016
@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

Please reconsider removing clean_env ... it's not a nice api and has known drawbacks, but forcing others to re-implement it is not helping either.
There is no clean way of removing bundler from them ENV, but it is needed for some usecases like restarting an app with exec like puma does or shelling out with a clean environment from inside a bundle exec call ...

@indirect

@indirect
Copy link
Member

indirect commented Jun 2, 2017

@grosser why would you not use original_env instead?

@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

because it still includes BUNDLE_GEMFILE / RUBYLIB etc

@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

bundle exec ruby -e 'puts Bundler::ORIGINAL_ENV'

@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

the more common case would be bundle exec rake / bundle exec puma ... bundle exec ruby could be re-written to ruby -rbundler/setup -e 'puts Bundler::ORIGINAL_ENV' and would work ... but the others don't

@indirect
Copy link
Member

indirect commented Jun 2, 2017

Ugh, that seems like a bug. :/ I agree that we should either fix original_env to provide access to the pre-bundler env or keep clean_env, though.

@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

agreed!

@grosser
Copy link
Contributor

grosser commented Jun 2, 2017

... stupid idea to fix the bug: serialize ORIGINAL_ENV into ENV['BUNDLE_ORIGINAL_ENV'] when calling bundle exec ...
issue already exists but was closed here #2369 and here #1424

@segiddins
Copy link
Member Author

@grosser please open a new issue to discuss this! This PR was merged a year ago and was simply porting things that were implemented on the 1-99-dev branch before

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.

None yet

5 participants