chef-dk
chef-dk copied to clipboard
Pre-release version strings?
It says in the Policyfile README that:
Cookbooks uploaded to the new cookbook storage API can have extended SemVer version numbers with prerelease sections, like 1.0.0-dev
But specifying such a version in a Policyfile or the cookbook's metadata version gives me an error:
Installing codio_base = 3.3.1-dev from path
Error: Failed to generate Policyfile.lock
Reason: (Chef::Exceptions::InvalidCookbookVersion) '3.3.1-dev' does not match 'x.y.z' or 'x.y'
Are prerelease versions string currently supported? If so, how?
Not yet. The Chef Server allows them, but chef-dk is re-using Chef's metadata.rb code, which disallows them. Also, it's likely that chef-client would barf when you attempted to run the cookbooks. It's definitely a thing we'd like to add, but I don't know when exactly it'll happen.
Hello, do you have a status update on this for chefdk (or for chef-workstation) ?