-
Notifications
You must be signed in to change notification settings - Fork 681
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
Fetch deps based on urls #935
Conversation
afbce4c
to
5bc7acd
Compare
5bc7acd
to
2dbbb6a
Compare
2dbbb6a
to
731cc0a
Compare
731cc0a
to
187005b
Compare
Great work @stevendanna I really like the split up into smaller pieces. I would prefer to store all dependency related classes under |
require 'molinillo' | ||
require 'inspec/errors' | ||
require 'inspec/requirement' | ||
require 'inspec/vendor_index' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 on the splitup
We need to be careful with the cwd:
|
@chris-rock Re the current working directory, I was going back and forth about what people expect there. Currently, as you can see, it is using the current directory, but we could get the base directory of the inspec.yml at the head of the tree if you think that is what people would expect. |
@@ -10,3 +10,5 @@ depends: | |||
path: ../profile_a | |||
- name: profile_b | |||
path: ../profile_b | |||
- name: os-hardening |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should rename the parent directory to depndencies
, since we are testing more complex content here that files. we may split that up later
I think, users would expect that they are relative to the partent profile location. I just tried to execute it that way as I normally execute profiles |
@stevendanna Could you do me a favor and highlight, which parts of #915 are addressed in that PR? |
@chris-rock I've updated this with:
I am 👍 on the change you recommended for fetcher but I think we should do that in a follow up PR. |
- Move classes into their own files - Remove classes that aren't used Signed-off-by: Steven Danna <[email protected]>
This extends the dependency feature to include support for url-based dependencies. It takes some deviations from the current support for URLs that we'll likely want to make more consistent. By default, we store downloaded archives in the cache rather than the unpacked archive. However, to facilitate debugging, we will prefer the unpacked archive if we find it in the cache. Signed-off-by: Steven Danna <[email protected]>
Signed-off-by: Steven Danna <[email protected]>
Signed-off-by: Steven Danna <[email protected]>
Signed-off-by: Steven Danna <[email protected]>
374f58b
to
9502920
Compare
related to #888 |
This extends the dependency feature to include support for url-based
dependencies. It takes some deviations from the current support for
URLs that we'll likely want to make more consistent.
By default, we store downloaded archives in the cache rather than the
unpacked archive. However, to facilitate debugging, we will prefer the
unpacked archive if we find it in the cache.
This partially addresses #915 by:
Still to do:
inspec.lock
file based on the fully resolved dependenciesSigned-off-by: Steven Danna [email protected]