Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

Pre-release version strings? #458

Open
joelmoss opened this issue Aug 4, 2015 · 2 comments
Open

Pre-release version strings? #458

joelmoss opened this issue Aug 4, 2015 · 2 comments
Labels
Components: Policyfile Issues realted to Policyfiles Type: Enhancement Adds new functionality.

Comments

@joelmoss
Copy link

joelmoss commented Aug 4, 2015

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 joelmoss changed the title Prelease version strings? Pre-release version strings? Sep 1, 2015
@danielsdeleo
Copy link
Contributor

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.

ksubrama pushed a commit that referenced this issue Jan 11, 2016
Pull 64-bit windows support changes into omnibus-chef
@thommay thommay added Type: Enhancement Adds new functionality. and removed Enhancement labels Feb 1, 2017
@cheeseplus cheeseplus added the Components: Policyfile Issues realted to Policyfiles label Sep 7, 2017
@gsantandrea
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Components: Policyfile Issues realted to Policyfiles Type: Enhancement Adds new functionality.
Development

No branches or pull requests

5 participants