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

Improve duplicate and cycle detection in resolver #1038

Merged
merged 1 commit into from
Sep 12, 2016
Merged

Conversation

stevendanna
Copy link
Contributor

Signed-off-by: Steven Danna steve@chef.io

@stevendanna stevendanna changed the title Detect duplicate deps at a given level of the dep tree WIP: Detect duplicate deps at a given level of the dep tree Sep 9, 2016
@stevendanna stevendanna changed the title WIP: Detect duplicate deps at a given level of the dep tree Improve duplicate and cycle detection in resolver Sep 9, 2016
else
"the dependency information for #{path_string.split(' ').last}"
end
fail Inspec::DuplicateDep, "The dependency #{dep.name} is listed twice in #{problem_cookbook}"
Copy link
Contributor

Choose a reason for hiding this comment

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

I think it may makes sense to add a test for that behavior?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There is a test that ensures we detect duplicates:

https://github.com/chef/inspec/pull/1038/files#diff-a1477bbe856a2707fce873a5096df630R28

Do you think we should test the content of the error message as well?

Copy link
Contributor

Choose a reason for hiding this comment

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

Uh missed that. Thanks @stevendanna

Signed-off-by: Steven Danna <steve@chef.io>
@chris-rock chris-rock merged commit fe98506 into master Sep 12, 2016
@chris-rock chris-rock deleted the ssd/dup-detect branch September 12, 2016 10:19
@chris-rock chris-rock modified the milestone: 0.34.0 Sep 12, 2016
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

3 participants