-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Regex for the "Cookbook Version" task will accidentally replace chef_version if present in metadata.rb. Can be fixed by prepending ^ to the regex so it only matches strings starting with "version" instead of anything containing version.
azuredevops-chef/tasks/cookbook_version/cookbook_version.ts
Lines 18 to 22 in 2dfffa7
| replace({ | |
| regex: /version\s+['"].*['"]/, | |
| replacement: sprintf("version '%s'", params["chefCookbookVersion"]), | |
| paths: [params["chefCookbookMetadata"]] | |
| }); |
chef_version described here
Metadata
Metadata
Assignees
Labels
No labels