Skip to content
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

Remove execute bit from bin/brew-cask.rb #3647

Merged
merged 1 commit into from Mar 24, 2014

Conversation

jasonkarns
Copy link
Contributor

bin/brew-cask.rb is meant to be required by Homebrew, not actually executed by
the shell. The execute bit is causing rbenv-binstubs to pick up
bin/brew-cask.rb is an executable and is shimming it. Which then causes
Homebrew to attempt to require the rbenv-shimmed shell script rather than the
ruby script.

IMO, the correct behavior is for non-executable ruby scripts to never be
placed in bin/ in the first place. But as Homebrew requires this behavior for
its external commands, removing the execute bit is a workaround.

@jasonkarns
Copy link
Contributor Author

This is a workaround for #3624 as suggested by @ianheggie.

@phinze
Copy link
Contributor

phinze commented Mar 24, 2014

Commented in more detail over on the other thread, but +1 for this. Pulling it in.

phinze added a commit that referenced this pull request Mar 24, 2014
Remove execute bit from bin/brew-cask.rb
@phinze phinze merged commit af9fe6b into Homebrew:master Mar 24, 2014
@jasonkarns jasonkarns deleted the rbenv-shimming branch March 24, 2014 14:37
@Homebrew Homebrew locked and limited conversation to collaborators May 8, 2018
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

2 participants