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

Ignore frozen setting in inline mode#7125

Merged
1 commit merged intomasterfrom
ignore_frozen_setting_in_inline_mode
Apr 24, 2019
Merged

Ignore frozen setting in inline mode#7125
1 commit merged intomasterfrom
ignore_frozen_setting_in_inline_mode

Conversation

@deivid-rodriguez
Copy link
Copy Markdown
Contributor

Fixes #7114.

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

The problem was that the inline mode wouldn't work if BUNDLE_FROZEN is set.

What was your diagnosis of the problem?

My diagnosis was that since we're in frozen mode, the current platform doesn't get added to the definition, and thus platform validation fails.

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

My fix is to temporary ignore BUNDLE_FROZEN for the inline mode. The inline mode can't really be frozen since it has no lock file.

@indirect
Copy link
Copy Markdown

Yeah, this seems legit. It strikes me as weird/unsupported to be running an inline script while BUNDLE_FROZEN is set, but if we can make it work, why not. :) r+ from me.

@deivid-rodriguez
Copy link
Copy Markdown
Contributor Author

Thanks!

@bundlerbot r=indirect

ghost pushed a commit that referenced this pull request Apr 24, 2019
7125: Ignore `frozen` setting in inline mode r=indirect a=deivid-rodriguez

Fixes #7114.

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

The problem was that the inline mode wouldn't work if `BUNDLE_FROZEN` is set.

### What was your diagnosis of the problem?

My diagnosis was that since we're in frozen mode, the current platform doesn't get added to the definition, and thus platform validation fails.

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

My fix is to temporary ignore `BUNDLE_FROZEN` for the inline mode. The inline mode can't really be frozen since it has no lock file.

Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
@ghost
Copy link
Copy Markdown

ghost commented Apr 24, 2019

Build succeeded

@ghost ghost merged commit f8ac66f into master Apr 24, 2019
@ghost ghost deleted the ignore_frozen_setting_in_inline_mode branch April 24, 2019 09:11
@silent-e
Copy link
Copy Markdown

re: @indirect

Yeah, this seems legit. It strikes me as weird/unsupported to be running an inline script while BUNDLE_FROZEN is set, but if we can make it work, why not. :) r+ from me.

I was the one that submitted the original issue bringing this up. The use case I have is a Rails 4 app but I have a standalone script in the project that is using inline to load a 5.x version of ActiveSupport. After deploy capistrano froze the bundle and the standalone fails without this fix.

FYI

(e)

This pull request was closed.
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.

[help wanted] script using bundler/inline in "frozen" capistrano-deployed app

3 participants