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

Fix recursive deps for path-based deps #929

Merged
merged 1 commit into from
Aug 18, 2016
Merged

Conversation

stevendanna
Copy link
Contributor

Ensure that we always instantiate an Inspec::Requirement and thread through the current working directory of the inspec.yml.

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

end

def initialize(vendor_index, opts = {})
@logger = opts[:logger] || Logger.new(nil)
@debug_mode = false # TODO: hardcoded for now, grab from options

@vendor_index = vendor_index
@cwd = opts[:cwd] || './'
Copy link
Contributor

Choose a reason for hiding this comment

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

I would move that to the cli and set the default there, not as part of the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Maybe we can reuse the profile path here to avoid adding a new option? Overall I think we'll need to refactor a lot of this current working directory as it is currently very confusing. Once we have the fetchers/vendoring more flushed out, I think this level of the code won't need to worry about this.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Signed-off-by: Steven Danna <steve@chef.io>
@chris-rock chris-rock merged commit 696ba5b into master Aug 18, 2016
@chris-rock chris-rock deleted the ssd/dep-recurse-1 branch August 18, 2016 14:32
@chris-rock chris-rock modified the milestone: 0.31.0 Aug 18, 2016
@chris-rock
Copy link
Contributor

related to #888

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