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

Error trying to lint one hcl file #85

Open
jevalenciap opened this issue Jun 28, 2023 · 3 comments
Open

Error trying to lint one hcl file #85

jevalenciap opened this issue Jun 28, 2023 · 3 comments
Assignees

Comments

@jevalenciap
Copy link

jevalenciap commented Jun 28, 2023

Hi there,

I am getting an error once I try to lint only one .hcl file. According to the error looks like the recursive flag is enabled once a single file is passed in the dir parameter. Can you add support to lint only one .hcl file?

image

Thanks,

@ChristophShyper ChristophShyper self-assigned this Jun 29, 2023
@ChristophShyper
Copy link
Member

I'll have a look at it. Thank you for reporting.

@jevalenciap
Copy link
Author

Hello @ChristophShyper,

Hope you are doing great, I am sending a following up, I really need this feature, please help me.

Thanks

@ChristophShyper
Copy link
Member

@jevalenciap Sorry for not responding earlier, I'm swamped with different work right now.
From what I see you provide a file path for dir, not a directory, that's why terraform is failing, since it's expecting a directory.
Have you tried replacing the value with .../TMAsecret?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants