-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
Automate dependencies #722
Comments
I'm not familiar with https://pre-commit.ci platform, though under the Github Actions section of |
It can be resolved by implementing #418 (comment) |
@yermulnik pre-commit.ci separates what it does into two stages. The first one is preparing the testing environment, it installs the deps (including The second step is running the checks. It does not provision anything. Moreover, it has networking disconnected from the env where it's being executed. This stage is not supposed to rely on network access in any way or attempt to provision things, since it's expected that the provisioned env is cached and never restarted until said cache is invalidated. So the only way to address this is to provide the dependencies in a way that is native to pre-commit. |
That's a problem for tflint requires plugin "aws" {
enabled = true
version = "0.37.0"
source = "github.com/terraform-linters/tflint-ruleset-aws"
} In theory, we could init all available plugins and pack them for Regarding
And I not sure what better:
Other hooks should be fine, just need to find out how to deal with |
What problem are you facing?
If you use the integrated pre-commit GitHub application, the fact that the docker images do not automatically download, install, or have the dependencies pre-defined causes issues.
Could you please update the hooks so that they either download or come pre-loaded with a version of the tools many of these hooks are dependent on?
How could pre-commit-terraform help solve your problem?
Either add a parameter in the hooks to download a specific version of the tools, or pre-load with latest version of tools.
The text was updated successfully, but these errors were encountered: