Skip to content

powerpipe benchmark list seems to search recursively even if there is no mod.pp file? #768

@e-gineer

Description

@e-gineer

I accidentally ran powerpipe benchmark list while in the root / directory. It prompted me for access to all my different file systems / volumes and then generated the output below.

I don't think benchmark list etc should enumerate all directories recursively? Seems aggressive.

It's also annoying / slow.

Image
nathan@e-gineer-Mac-2024 / % powerpipe benchmark list
Error: Internal Error: Failed to decode mod: Mod defines more than one resource named 'local.var.lambda_latest_runtimes':
- /System/Volumes/Data/Users/nathan/src/steampipe-mod-aws-compliance/conformance_pack/lambda.pp:1,35-5,2
- /Users/nathan/src/steampipe-mod-aws-compliance/conformance_pack/lambda.pp:1,35-5,2
Mod defines more than one resource named 'local.var.lambda_deprecated_runtimes':
- /System/Volumes/Data/Users/nathan/src/steampipe-mod-aws-compliance/conformance_pack/lambda.pp:7,39-11,2
- /Users/nathan/src/steampipe-mod-aws-compliance/conformance_pack/lambda.pp:7,39-11,2
Mod defines more than one resource named 'local.var.common_dimensions':
- /System/Volumes/Data/Users/nathan/src/steampipe-mod-aws-compliance/variables.pp:10,30-18,2
- /Users/nathan/src/steampipe-mod-aws-compliance/variables.pp:10,30-18,2
Mod defines more than one resource named 'local.var.tag_dimensions':
- /System/Volumes/Data/Users/nathan/src/steampipe-mod-aws-compliance/variables.pp:20,27-28,2
- /Users/nathan/src/steampipe-mod-aws-compliance/variables.pp:20,27-28,2
Mod defines more than one resource named 'local.var.database':
- /System/Volumes/Data/Users/nathan/src/tailpipe-mod-aws-cloudtrail-log-detections/variables.pp:1,21-5,2
- /Users/nathan/src/tailpipe-mod-aws-cloudtrail-log-detections/variables.pp:1,21-5,2

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingstale

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions