Skip to content

Commit 4939c7e

Browse files
authored
plugin: Deprecate bundled plugins (#1160)
1 parent 8e6bc3a commit 4939c7e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

cmd/inspect.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ func (cli *CLI) inspect(opts Options, dir string, filterFiles []string) int {
5151
for addr := range reqs {
5252
if addr.Type == "aws" {
5353
log.Print("[INFO] AWS provider requirements found. Enable the plugin `aws` automatically")
54+
fmt.Fprintln(cli.errStream, "WARNING: The plugin `aws` is not explicitly enabled. The bundled plugin will be enabled instead, but it is deprecated and will be removed in a future version. Please see https://github.com/terraform-linters/tflint/pull/1160 for details.")
5455
cfg.Plugins["aws"] = &tflint.PluginConfig{
5556
Name: "aws",
5657
Enabled: true,

cmd/version.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ func (cli *CLI) printVersion(opts Options) int {
4848
for addr := range reqs {
4949
if addr.Type == "aws" {
5050
log.Print("[INFO] AWS provider requirements found. Enable the plugin `aws` automatically")
51+
fmt.Fprintln(cli.errStream, "WARNING: The plugin `aws` is not explicitly enabled. The bundled plugin will be enabled instead, but it is deprecated and will be removed in a future version. Please see https://github.com/terraform-linters/tflint/pull/1160 for details.")
5152
cfg.Plugins["aws"] = &tflint.PluginConfig{
5253
Name: "aws",
5354
Enabled: true,

langserver/handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func NewHandler(configPath string, cliConfig *tflint.Config) (jsonrpc2.Handler,
3535

3636
// AWS plugin is automatically enabled for the backward compatibility.
3737
if _, exists := cfg.Plugins["aws"]; !exists {
38-
log.Print("[INFO] Plugin `aws` is automatically enabled when the `aws` plugin configuration not found")
38+
log.Print("WARNING: The plugin `aws` is not explicitly enabled. The bundled plugin will be enabled instead, but it is deprecated and will be removed in a future version. Please see https://github.com/terraform-linters/tflint/pull/1160 for details.")
3939
cfg.Plugins["aws"] = &tflint.PluginConfig{
4040
Name: "aws",
4141
Enabled: true,

0 commit comments

Comments
 (0)