chef-dk icon indicating copy to clipboard operation
chef-dk copied to clipboard

Pre-release version strings?

Open joelmoss opened this issue 8 years ago • 2 comments

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?

joelmoss avatar Aug 04 '15 14:08 joelmoss

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.

danielsdeleo avatar Sep 28 '15 22:09 danielsdeleo

Hello, do you have a status update on this for chefdk (or for chef-workstation) ?

gsantandrea avatar Mar 09 '20 14:03 gsantandrea