Skip to content
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

Only declare the Agent package if not already declared #672

Merged
merged 1 commit into from Nov 19, 2020

Conversation

albertvaka
Copy link
Contributor

What does this PR do?

We need the Agent package to be declared even when we don't install it,
since there's code that depends on it. Our current approach is to always
declare it, which works if the package is installed by something other than
Puppet (eg: chocolatey), since our declaration would not try to install it
again and the code that depends on that declaration would still be happy.
However, in case the package is being installed by a different Puppet
module, it would fail with a Duplicate declaration error.

Motivation

Bug report.

We need the package to be declared even when we don't install it, since
there's code that depends on it. Our current approach is to always declare
it, which works if the package is installed by something else than Puppet
(eg: chocolatey), since our declaration would not try to install it again
and the code that depends on that declaration would still be happy.
However, in case the package is being installed by a different Puppet
module, it would fail with a `Duplicate declaration` error.
@albertvaka albertvaka requested a review from a team as a code owner November 19, 2020 12:49
@albertvaka albertvaka merged commit 1c096b0 into master Nov 19, 2020
@albertvaka albertvaka deleted the albertvaka/do-not-redeclare-package branch November 19, 2020 17:20
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.

None yet

2 participants