puppetlabs / puppetlabs-apt

Puppet module to help manage Apt
https://forge.puppetlabs.com/puppetlabs/apt
Apache License 2.0
215 stars 463 forks source link

Dependency cycle after update to 8.4.0 #1036

Closed dhs-rec closed 2 years ago

dhs-rec commented 2 years ago

Describe the Bug

After updating the module from 8.3.0 to 8.4.0, I get a dependency cycle on all Debian family nodes, for any repo I manage:

Found 1 dependency cycle:
(Exec[apt_update] => Class[Apt::Update] => Package[gnupg] => Apt::Key[Add key: 5B7C3E5A735BCB4D615829DC0BDDA991FD7AAC8A from Apt::Source theforman_buster] => Apt::Setting[list-theforman_buster] => File[/etc/apt/sources.list.d/theforman_buster.list] => Class[Apt::Update] => Exec[apt_update])\nTry the '--graph' option and opening the resulting '.dot' file in OmniGraffle or GraphViz

Expected Behavior

No dependency cycle.

Steps to Reproduce

  1. Update the module
  2. Start an agent run

Environment

Additional Context

kenyon commented 2 years ago

I'm on 8.4.0 and not seeing dependency cycles.

tlebars commented 2 years ago

Same issue here.

Reverting #1020 as suggested by @dhs-rec fixed it.

david22swan commented 2 years ago

@dhs-rec @tlebars Hey, have put a pr up for this issue if you'd like to take a look and possibly pull it down onto one of your machines to check that it fixes the issue: https://github.com/puppetlabs/puppetlabs-apt/pull/1039

dhs-rec commented 2 years ago

@david22swan, I replaced my workaround with your fix and it's still working.

tlebars commented 2 years ago

@david22swan Your PR is working for me too. Thanks !

david22swan commented 2 years ago

That's it merged and a release has been cut so it should be good now.

david22swan commented 2 years ago

Thank's for bringing this to our attention