This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 382
shebang breaks the executable on systems with {rbenv,rvm}-managed rubies #1211
Open
berdario
wants to merge
91
commits into
heroku:master
Choose a base branch
from
berdario:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Don't update manifest or update hash during beta phase.
upgraded heroku-api and excon
use svg badges for retina displays
test on ruby 2.0.0 and 2.1.2 for future compatibility
Fix beta releases
Better errors when psql fails and when we can't check the pg version
added cove coverage via coveralls/simplecov
Record source app id as fork deploy source
get rid of travis notifications (way too many messages)
upgrade gems (notably excon)
added ocra script
Fixes heroku#1201 RestClient is not available if you use Client directly without CLI/
require rest-client in Client
Paranoid currently only works in Excon. This adds support to `RestClient` as well.
…id-support Support for paranoid operations on commands using `RestClient`
prompt for creating ~/.ssh/id_rsa
This lets users kill all their existing connections even when they have no remaining connections on their given database plan, preventing a chicken-and-egg problem in some situations.
…llall Use server-side connection reset endpoint for pg:killall
As part of the eventual deprecation of the Manager API component, the main API will now start to respond to fulfill orgs-related requests. See also heroku/api#2837.
Send all orgs-related requests to api.heroku.com
berdario
added a commit
to berdario/dotfiles
that referenced
this pull request
Sep 29, 2014
This reverts commit 37fadd9.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is basically the same issue mentioned in this comment
Using
env
in the shebang is all fine and dandy as long as you have a standalone script that can run on different ruby versions, but as soon as you add some dependencies (like in heroku's case) you cannot expect that the interpreter in the current environment has them installed. I stumbled upon this issue after installing the heroku toolbelt from its deb repositories on a normal ubuntu system with multiple rubies managed byrbenv
. So the scripts should rely on the same ruby interpreter that has been required as a dependency by the debian package, not the one resolved byenv
(granted, rather than merging this you might want to tweak
deb.rake
to take care of possible differences in the location of theruby
executable on different distros)An example of another application that avoids
env
in its executable's shebang isdropbox
, and indeed the dropbox script works just fine even when invoked from inside a virtualenv (which is sort of the python equivalent of rbenv, rvm)