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

Provide clear error message if dependency is not available #1069

Closed
chris-rock opened this issue Sep 14, 2016 · 1 comment
Closed

Provide clear error message if dependency is not available #1069

chris-rock opened this issue Sep 14, 2016 · 1 comment
Milestone

Comments

@chris-rock
Copy link
Contributor

chris-rock commented Sep 14, 2016

Description

If I run InSpec on a profile with multiple dependencies, it aborts if a dependency is not available. This is correct, but its hard for the user to extract the abortion from No fetcher for linux

$ inspec exec examples/meta-profile 
[2016-09-14T08:47:39+02:00] WARN: URL target https://github.com/dev-sec/tests-ssh-hardening transformed to https://github.com/dev-sec/tests-ssh-hardening/archive/master.tar.gz. Consider using the git fetcher
[2016-09-14T08:47:42+02:00] WARN: URL target https://github.com/dev-sec/tests-ssh-hardening transformed to https://github.com/dev-sec/tests-ssh-hardening/archive/master.tar.gz. Consider using the git fetcher
No fetcher for linux (options: {:cwd=>"examples/meta-profile", :backend=>#<#<Class:0x007fc2cd5ca8e0>:0x007fc2cd5c3180>, :name=>"linux", :compliance=>"base/linux"})

InSpec and Platform Version

0.34.0

Replication Case

see above

Possible Solutions

Show proper error message and color it in red.

Related to #888

@chris-rock chris-rock added this to the 0.35.0 milestone Sep 14, 2016
@arlimus arlimus added the ready label Sep 15, 2016
@chris-rock chris-rock modified the milestones: 0.35.0, 0.36.0, 1.0.0 Sep 19, 2016
@chris-rock chris-rock modified the milestones: 1.0.0, 1.1.0 Sep 26, 2016
@stevendanna
Copy link
Contributor

I believe this was fixed in: #1126

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

No branches or pull requests

3 participants