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

Builddep notifies apt-get update instead of requiring it #326

Merged
merged 1 commit into from
Sep 24, 2014
Merged

Builddep notifies apt-get update instead of requiring it #326

merged 1 commit into from
Sep 24, 2014

Conversation

dvcrn
Copy link

@dvcrn dvcrn commented Jul 6, 2014

as the title says, builddep notifies apt-get update instead of requiring it, which doesn't make much sense. In almost every case, you want apt-get update to be executed before builddep.

The problem I ran into is a huge dependency cycle because of apt-get update. Builddep had to be executed after sources being added which after a lot of trying I concluded to not be possible. (serverfault here)

Changing notify to require solves this dependency cycle for me.

Any thoughts on this?

@daenney
Copy link

daenney commented Jul 6, 2014

I have no clue whatsoever why builddep would ever notify apt_update. It's from the original module import almost 4 years ago so unfortunately it's hard to track down the 'why'.

I'll ponder this and check with a few people what they think.

@daenney
Copy link

daenney commented Aug 3, 2014

@mhaskel I'd like to merge this because the old behaviour as far as I'm concerned doesn't make any sense whatsoever. Can you see any issues arising from requiring a refreshonly exec or should we play it safe and require the containing class?

@underscorgan
Copy link

@daenney I'm fine with requiring a refreshonly exec, and I know this maintains old behavior for that exec (and I'm not an avid apt user), but should builddep be running every time, or should it also have refreshonly and subscribe to apt_update?

@daenney
Copy link

daenney commented Aug 5, 2014

Okay wait, there's something slightly more crazy going on. The exec in builddep is notifying the Exec[apt_update] but the anchor in builddep is requiring Class[apt::update]. I'm slightly unsure how this even works without creating a dependency cycle to begin with.

As far as the refreshonlyness of the exec goes, I'm unsure. Ideally build-dep would be supported through the install options on the package provider instead of an exec, then we wouldn't have the issue.

I think the reason it isn't refreshonly is in case something goes wrong you don't have to explicitly notify the thingy to cause it to retry to install the build dependencies.

daenney added a commit that referenced this pull request Sep 24, 2014
Builddep notifies apt-get update instead of requiring it
@daenney daenney merged commit dde7f4e into puppetlabs:master Sep 24, 2014
daenney added a commit that referenced this pull request Sep 24, 2014
@LukasAud LukasAud added the bugfix label Jun 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants