heroku/heroku-pg-extras

Fails to install on Ubuntu 18.04

Closed this issue · 1 comments

Given Ubuntu 18.04

$ lsb_release -a
No LSB modules are available.
Distributor ID:	Ubuntu
Description:	Ubuntu 18.04.4 LTS
Release:	18.04
Codename:	bionic

Given a Snap installation of Heroku installed and resfreshed:

$ which heroku
/snap/bin/heroku
$ sudo snap refresh heroku
snap "heroku" has no updates available

I should be able to install heroku-pg-extras via the CLI:

$ heroku plugins:install heroku-pg-extras -a appname
Installing plugin heroku-pg-extras... installed v1.2.2
error Missing list of packages to add to your project.
Installing plugin -a... !
Error: yarn add -a@latest --non-interactive --mutex=file:/home/adsteel/.local/share/heroku/yarn.lock --preferred-cache-folder=/home/adsteel/.cache/heroku/yarn --check-files --registry=https://registry.npmjs.org exited with code 1
    at ChildProcess.<anonymous> (/snap/heroku/3947/node_modules/@oclif/plugin-plugins/lib/yarn.js:31:28)

This was due to trying to pass the app name. I didn't realize I was installing this locally, but of course I was :). Not passing the -a flag allowed it to succeed.