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

If there is a locked_version, check the CookbookStore directly #841

Merged
merged 1 commit into from Sep 19, 2013

Conversation

sethvargo
Copy link
Contributor

This causes a dramatic speed improvement for already-downloaded dependencies and ensure the proper cookbook version is actually used.

@sethvargo
Copy link
Contributor Author

@ivey @reset @andrewGarson 👀 please

Constraints are = 2.0.0
Possible values are ["berkshelf", []]
Could not find an acceptable value for berkshelf
Cannot backtrack any further
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This change is unrelated, but the tests were failing. I made the test more generic.

@ivey
Copy link
Contributor

ivey commented Sep 19, 2013

Looks good to me. Currently locked out of my laptop (which will explain any rage subtext to my tweets/emails ... Grar) so I can't test but I think this is a good change.

This causes a dramatic speed improvement for already-downloaded dependencies and ensure the proper cookbook version is actually used.
@sethvargo sethvargo merged commit f8eed75 into master Sep 19, 2013
@sethvargo sethvargo deleted the obey_locked branch September 19, 2013 14:40
@reset
Copy link
Contributor

reset commented Sep 19, 2013

@sethvargo is this just the optimization found in #829 but for the master branch?

@sethvargo
Copy link
Contributor Author

@reset no. Using #satisfy is significantly (like seconds) slower when finding a cookbook and is O(n^2) proportional to the size of your Berkshelf. The #cookbook method is an O(1) operation because it just looks for a folder.

@reset
Copy link
Contributor

reset commented Sep 19, 2013

@sethvargo ok so we still need to pull in #829 then?

@berkshelf berkshelf locked and limited conversation to collaborators Jun 16, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants