[chef] Re: Re: Why is berks install not getting latest cookbook version from Berks API server?


Chronological Thread 
  • From: Zac Stevens < >
  • To:
  • Subject: [chef] Re: Re: Why is berks install not getting latest cookbook version from Berks API server?
  • Date: Thu, 20 Aug 2015 15:25:52 +0100

On Thu, Aug 20, 2015 at 3:36 AM, Eric Helgeson < " target="_blank"> > wrote:
~> is pessimistic

From the docs[0]:
 ~>(approximately greater than; also known as “pessimistically greater than”, or “pessimistic”),

​That means it will take the lowest version that fits the constraints given.

​If you're following semantec versioning you could set 
depends 'linux_role', '>= 1.1.0'
​which should pickup all versions in the 1.1.x range​

I'm pretty sure that is incorrect - "~> 1.1.0" will match 1.1.x, while ">= 1.1.0" will match 1.1.x, 1.2.x, 99.100.x, etc.

The rubygems page on the subject[0] gives a fairly good treatment, but the same logic applies to cookbook dependencies.


Zac
 




Archive powered by MHonArc 2.6.16.

§