COOK-4534: Add option to update apt cache at compiletime #75
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://tickets.opscode.com/browse/COOK-4534
This pull-request adds a
compile_time_update
attribute to the Apt cookbook to force anapt-get update
at compile time in order to ensure cookbooks that have an option to run at compile time can install packages. I usedcompile_time_update
becausecompiletime
is already being used for a different functionality. However, in the future, it may be useful to refactor these into attributes that are more obvious.History
Changes in the build-essential cookbook (discussed here) have removed build-essential's behavior of running
apt-get update
before attempting to install packages when invoked at compile time. Per the linked discussion in the build-essential cookbook, @sethvargo recommended updating the Apt cookbook to provide an option to run at compile time instead of build-essential being responsible for it.