fix: stop tracking Policyfile.lock.json - #320
Closed
ramereth wants to merge 1 commit into
Closed
Conversation
The lock pins the cookbook to an exact version, but release-please only
bumps metadata.rb. When the two disagree, ChefSpec's policyfile install
aborts the whole RSpec suite before any example runs:
CookbookOmnifetch::CookbookValidationFailure: The cookbook downloaded
for Cookbook 'nodejs' = 11.0.0 {:path=>"."} did not satisfy the constraint.
The lock cannot simply be version-bumped either, since it also carries
content-derived identifier and dotted_decimal_identifier fields.
chefignore already excludes it from the published artifact, and 171 of 179
sous-chefs repos do not track it.
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Signed-off-by: Lance Albertson <[email protected]>
Slowest examplesTop 10 slowest examples (1.05 seconds, 39.09% of total time)
|
Contributor
Author
|
Closing in favor of #319 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Problem
Policyfile.lock.jsonis tracked and pinsnodejsto an exact version (11.0.0), while release-please only bumpsmetadata.rb(currently11.0.1). Whenever the two disagree, ChefSpec's policyfile install aborts the entire RSpec suite before a single example runs:Fix
Untrack the lock. It is a generated artifact —
chefignorealready excludes it from the published cookbook, and 171 of 179 sous-chefs repos do not track it.Bumping the version inside the lock is not a viable alternative: it also carries
identifieranddotted_decimal_identifierfields derived from cookbook content.Same fix as sous-chefs/logrotate#226.