Skip to content

Write to unique location and stop logs about deprecated force-yes flag

Compare
Choose a tag to compare
@jontewks jontewks released this 15 Oct 17:32
Don't use deprecated `apt-get --force-yes` (#30) (#31)

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 https://github.com/jontewks/puppeteer-heroku-buildpack/issues/29