beaker icon indicating copy to clipboard operation
beaker copied to clipboard

apt "--force-yes" is deprecated

Open TheMeier opened this issue 6 months ago • 1 comments

When installing the chosen openvox/puppet collection the command is created as apt-get install --force-yes -y #{pkg}" https://github.com/voxpupuli/beaker/blob/770cc7c65d113e8d079d27ff0a740e37d71bed42/spec/beaker/host/unix/pkg_spec.rb#L142

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

I think we can just simply drop this option

TheMeier avatar Jul 11 '25 08:07 TheMeier

You linked the tests, not the actual code:

https://github.com/voxpupuli/beaker/blob/770cc7c65d113e8d079d27ff0a740e37d71bed42/lib/beaker/host/unix/pkg.rb#L99

But yes, I agree we can drop it. I don't think we need any of the --allow-downgrades, --allow-remove-essential, or --allow-unauthenticated.

ekohl avatar Jul 11 '25 11:07 ekohl