Skip to content

feat: Support downloading tflint plugins#22

Open
pulasthibandara wants to merge 1 commit intoyanndegat:mainfrom
rillanetwork:feat/download-tflint-plugins
Open

feat: Support downloading tflint plugins#22
pulasthibandara wants to merge 1 commit intoyanndegat:mainfrom
rillanetwork:feat/download-tflint-plugins

Conversation

@pulasthibandara
Copy link
Copy Markdown

tflint provides a plugin system to introduce provider specific linting rules. ex: https://github.com/terraform-linters/tflint-ruleset-aws.

These plugins are downloaded by defining them on the tflint config and running tflint --init step.

Similar to how terraform plugins are downloaded with mirror command, the tflint's --init flag allows defining a plugin directory via TFLINT_PLUGIN_DIR env variable.

This PR extends the functionality of the tflint toolchain to exetute tflint with --init flag to pre-cache the plugins on a predefined directory. wrapper.sh scripts sets the TFLINT_PLUGIN_DIR to use the pre-cached plugins duing lint runs.

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

Successfully merging this pull request may close these issues.

2 participants