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

Revert "Merge pull request #586 from heroku/check-binstubs" #623

Merged
merged 1 commit into from
Sep 15, 2017

Conversation

schneems
Copy link
Contributor

This reverts commit c2ba079, reversing
changes made to c42a578.

This reverts commit c2ba079, reversing
changes made to c42a578.
@jkutner jkutner self-requested a review September 15, 2017 19:20
@schneems schneems merged commit 10f2f86 into master Sep 15, 2017
@schneems
Copy link
Contributor Author

schneems commented May 4, 2020

Why did I revert this?

@schneems
Copy link
Contributor Author

schneems commented May 7, 2020

I think as-is this would warn on binstubs like /usr/bin/env python or /usr/bin/env bash etc. That's likely why this was pulled.

schneems added a commit that referenced this pull request Jun 10, 2020
This article explains binstubs and "shebang" lines: https://devcenter.heroku.com/articles/bad-ruby-binstub-shebang. A relatively common problem when generating a binstub is for it to contain a bad shebang line. Here's an example:

```
#!/usr/bin/env ruby2.5
```

If you've got a binstub with that shebang line in your project and are running on Heroku 18 then your app will be forced to use `ruby2.5` binary no matter what version of Ruby you've specified in the `Gemfile`. This causes very odd behavior and weird, difficult to debug bundler errors. 

This PR does not fix the problem, but will at least warn anyone with a version number in their ruby shebang line.

This behavior was originally:


-    Introduced: #586
-    Rolled back: #623
 

It was rolled back because it would falsely claim that `#!/usr/bin/env bash` was incorrect also it only protected against a limited set of binstubs.
@edmorley edmorley deleted the schneems/revert-commit branch August 27, 2020 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants