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

Add support for requires to define dependencies in the mod.sp file #1686

Closed
misraved opened this issue Mar 16, 2022 · 0 comments
Closed

Add support for requires to define dependencies in the mod.sp file #1686

misraved opened this issue Mar 16, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@misraved
Copy link
Contributor

misraved commented Mar 16, 2022

Describe the bug
Using requires in the mod.sp file doesn't check for dependencies anymore.
In CLI version 0.13.0 when I test with the following dependencies -

  require {
    plugin "aws" {
      version = "0.50.1"
    }
    # steampipe = "0.13.1"
  }

I get the following error (which is expected) -
➜ steampipe-mod-aws-insights git:(main) ✗ steampipe dashboard
Error: 1 mod plugin requirement not satisfied.

turbot/aws 0.46.0 → 0.50.1

However the usage of requires doesn’t seem to work anymore

Steampipe version (steampipe -v)
Example: v0.13.0

To reproduce

  1. Add the following in the mod.sp file
  require {
    plugin "aws" {
      version = "0.50.1"
    }
    steampipe = "0.13.1"
  }
  1. Install a lower version of aws plugin - 0.46.0

  2. Run steampipe dashboard

Expected behavior
Steampipe should throw an error regarding the plugin version incompatibility

Additional context
Add any other context about the problem here.

@misraved misraved added the bug Something isn't working label Mar 16, 2022
@misraved misraved changed the title Add support for requires for defining dependencies in the mod.sp file Add support for requires to define dependencies in the mod.sp file Mar 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants