We’re having the same issue. Tried to manually upgrade heroku-cli, to no avail. Might not have done it correctly, but either way, haven’t made progress.
We are aware of this issue and will be updating the Heroku CLI in the next Ubuntu 14.04 build image update we do. For now, you can run this command to install their newer CLI (which was rewritten which is why this one is deprecated):
wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
Update: If you are using the 12.04 image, I’d switch over to 14.04 and then follow my solution. This is because Ubuntu 12.04 has been EOL’d by Canonical as well as us.
I’m not super familiar with Circle CI. Do we need to run a build “with ssh” and then run the wget command from the ssh prompt? Or is there a better way to get the Heroku CLI installed?
You can run that command anytime during your build. If you are using the CLI command manually in the deployment section, then you’d want to use it before that. Otherwise, you could run it after tests.
deployment:
prod:
branch: master
commands:
- wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh
- heroku --version #whatever command you want
or
test:
post:
- wget -qO- https://cli-assets.heroku.com/install-ubuntu.sh | sh