Skip to content

Don't use deprecated apt-get --force-yes #30

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

Merged
merged 1 commit into from
Oct 15, 2018

Conversation

josephfrazier
Copy link
Contributor

I noticed in my heroku build log that there's a bunch of apt-get warnings like this:

W: --force-yes is deprecated, use one of the options starting with --allow instead.

It looks like this line is the one responsible:

apt-get $APT_OPTIONS -y --force-yes -d install --reinstall $PACKAGE | indent

According to the apt-get man page,
we can use --allow-downgrades --allow-remove-essential --allow-change-held-packages instead.

Fixes #29

I noticed in my heroku build log that there's a bunch of `apt-get` warnings like this:

```
W: --force-yes is deprecated, use one of the options starting with --allow instead.
```

It looks like this line is the one responsible: https://github.com/jontewks/puppeteer-heroku-buildpack/blob/22c5b5960775a5befb89e8b9a1014bc8c1187e3f/bin/compile#L56

According to the [`apt-get` man page](https://manpages.debian.org/stretch/apt/apt-get.8.en.html),
we can use `--allow-downgrades --allow-remove-essential --allow-change-held-packages` instead.

Fixes jontewks#29
@jontewks
Copy link
Owner

Thanks @josephfrazier, I am gonna merge this to a testing branch so I can deploy a specific branch on heroku to test there and then merge that branch to master once all done. I'll let you know when its merged too so you can get the latest and confirm its working for you as well!

@jontewks jontewks merged commit 3ec15eb into jontewks:testing Oct 15, 2018
@josephfrazier
Copy link
Contributor Author

Perfect, thanks again!

jontewks added a commit that referenced this pull request Oct 15, 2018
I noticed in my heroku build log that there's a bunch of `apt-get` warnings like this:

```
W: --force-yes is deprecated, use one of the options starting with --allow instead.
```

It looks like this line is the one responsible: https://github.com/jontewks/puppeteer-heroku-buildpack/blob/22c5b5960775a5befb89e8b9a1014bc8c1187e3f/bin/compile#L56

According to the [`apt-get` man page](https://manpages.debian.org/stretch/apt/apt-get.8.en.html),
we can use `--allow-downgrades --allow-remove-essential --allow-change-held-packages` instead.

Fixes #29
jontewks pushed a commit that referenced this pull request Oct 15, 2018
I noticed in my heroku build log that there's a bunch of `apt-get` warnings like this:

```
W: --force-yes is deprecated, use one of the options starting with --allow instead.
```

It looks like this line is the one responsible: https://github.com/jontewks/puppeteer-heroku-buildpack/blob/22c5b5960775a5befb89e8b9a1014bc8c1187e3f/bin/compile#L56

According to the [`apt-get` man page](https://manpages.debian.org/stretch/apt/apt-get.8.en.html),
we can use `--allow-downgrades --allow-remove-essential --allow-change-held-packages` instead.

Fixes #29
@3x1l3l4bs
Copy link

Thanks so much

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.

3 participants