Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add correct version dependency. #23

Conversation

mparker17
Copy link
Contributor

Support for pear was added in the php cookbook version 1.1.0.

Support for pear was added in the php cookbook version 1.1.0.
@patcon
Copy link
Collaborator

patcon commented Nov 27, 2013

Sure thing, I'm all for adding more restrictive constraints! but if we're going to do it, isn't it >= 0.99.0 when pear resource was introduced?

@mparker17
Copy link
Contributor Author

The earliest release of the PHP cookbook which was tagged in Git was 1.1.0 (see https://github.com/opscode-cookbooks/php/releases). I haven't confirmed how the Chef code checks version numbers, but other cookbooks appear to reference git tag names.

@patcon
Copy link
Collaborator

patcon commented Nov 28, 2013

Any version from the community site api is valid, which goes back further than the tags :)

M Parker added 2 commits November 28, 2013 19:29
As pointed out by @patcon, even though no git tags exist for version
0.99.0, it's still a valid release version to depend on.
@mparker17
Copy link
Contributor Author

@patcon I've added a commit to fix the dependency as you suggested.

@@ -5,7 +5,7 @@
description "Installs drush, the Drupal Shell."
long_description IO.read(File.join(File.dirname(__FILE__), 'README.rdoc'))
version "0.10.0"
depends "php"
depends "php", "~> 0.99.0"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the cautious operator would break things, since it would cap the acceptable version at 0.99.x, right?

@patcon patcon closed this in 626f32d Nov 29, 2013
@mparker17 mparker17 deleted the feature-correct_php_cookbook_version_dep branch November 29, 2013 17:34
@mparker17
Copy link
Contributor Author

Oh, wow, I didn't realize that was a caution operator.

Still, though, everything seemed to work fine in my runlists... I didn't get any problems.

Thanks for your work on this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants