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

cmd: Deprecate CLI arguments #1687

Merged
merged 1 commit into from
Feb 25, 2023
Merged

cmd: Deprecate CLI arguments #1687

merged 1 commit into from
Feb 25, 2023

Conversation

wata727
Copy link
Member

@wata727 wata727 commented Feb 14, 2023

See also #1612 #1638

Previously, TFLint accepted files and directories as arguments.

$ tflint main.tf
// print only main.tf issues from the directory

$ tflint modules/production
// inspect modules/production directory

This is a natural interface as a linter. However, as a Terraform language static analyzer, there are some issues.

First, the Terraform language must evaluate modules (directories), so it cannot evaluate a single file. This is clear if you imagine the example of evaluating an expression like var.foo in the presence of variables.tf and main.tf respectively.

Second, in the Terraform language, the current directory is included in the semantics. Imagine an example like file("./policy.json"). From this you can see that tflint modules/production and cd modules/production; tflint give different results.

Terraform has dropped support for arguments and introduced the -chdir flag to address the second issue. hashicorp/terraform#26087. TFLint focuses on Terraform language compatibility, so we try to make the interface as uniform and unambiguous as possible.

Recently, TFLint introduced the --chdir and --filter flags. It can replace the arguments as follows:

$ tflint --filter=main.tf
// replacement of "tflint main.tf"

$ tflint --chdir=modules/production
// replacement of "tflint modules/production"

$ tflint --chdir=modules/production --filter=main.tf
// replacement of "tflint modules/production/main.tf"

(As a side note, for the same reasons as Terraform, it is recommended that these options be placed at the beginning of all flags and joined with =)

This PR changes it to print a warning to stderr like the following if the arguments are still in use:

$ tflint main.tf
WARNING: "tflint FILE/DIR" is deprecated and will error in a future version. Use --chdir or --filter instead.

$ tflint --version modules/production
WARNING: Arguments are not used in version mode and will error in a future version. Use --chdir instead.

$ tflint --langserver modules/production
WARNING: Arguments are not used in language server mode and will error in a future version.

$ tflint --init modules/production
WARNING: Arguments are not used in init mode and will error in a future version. Use --chdir instead.

We are planning to drop support for arguments in v0.47. It will work as before in v0.46, but we recommend migrating early.

@wata727 wata727 merged commit e6f2cce into master Feb 25, 2023
@wata727 wata727 deleted the print_warn_for_args branch February 25, 2023 14:16
TylerJang27 added a commit to trunk-io/plugins that referenced this pull request Jul 6, 2023
Adaptation of #350, using `target: ${parent}` to better achieve the
`--chdir` behavior recommended by
terraform-linters/tflint#1687

---------

Co-authored-by: Piotr Roszatycki <piotr.roszatycki@gmail.com>
wip-sync pushed a commit to NetBSD/pkgsrc-wip that referenced this pull request Sep 5, 2023
pkgsrc changes:
- Add a rationale on the custom do-install: target

Changes:
v0.48.0
* Bump tflint-plugin-sdk to v0.18.0
  * This change causes the deprecated `IncludeNotCreated` option to be
    ignored. Most plugin users will not be affected.

v0.47.0
This release introduces autofix feature. Running `tflint --fix` will
automatically fix issues as possible. Note that not all rules support
autofix. In order to support autofix, plugins must be built with SDK
v0.17+ and implement autofix.

The bundled Terraform ruleset has been updated to v0.4.0 with autofix
support. In other words, for Terraform rules, you can use autofix as it
is. See the tflint-ruleset-terraform v0.4.0 changelog for details.

- plugin: Drop support for plugin SDK v0.12/v0.13
  - Plugins built using SDKs v0.12/v0.13 are no longer supported. If
    you get "SDK version is incompatible" error, you need to update the
    plugin to use SDK v0.14+.
- Bump tflint-plugin-sdk and bundled terraform plugin
  - The SDK has been updated to v0.17.0 and the bundled Terraform
    plugin to v0.4.0. Terraform ruleset v0.3.0 contains breaking
    changes.
- cmd: Drop support for CLI arguments
  - Argument support has been removed based on the deprecation warning
    added in v0.46. As of v0.47, it returns an error instead of a
    warning. See terraform-linters/tflint#1687
    for details.

v0.46.1
- sarif: fix incorrect `endLine`

v0.46.0
This release adds deprecation warnings for future breaking changes.
Warn when using command line arguments like `tflint dir` and `tflint
main.tf`. The former can be replaced with `tflint --chdir=dir` and the
latter with `tflint --filter=main.tf`. See
terraform-linters/tflint#1687 for details.

The GPG key signed signature attached to TFLint releases has been
deprecated. This signature will not be added to releases after May 1,
2023. Please migrate to verification with Cosign.

v0.45.0
This release adds support for some CLI flags. File arguments (e.g.
`tflint main.tf`) have been deprecated by the new `--filter` flag. It
works in v0.45 but will be removed in a future version. We recommend
migrating to `tflint --filter=main.tf`.

All arguments are deprecated from this release. If you're using
arguments, you'll need to migrate to the `--chdir` or `--filter`
flags.

This release updates the expiration date of the built-in GPG public
key. Existing keys will expire on 2023-05-01, so you are encouraged to
update by then.

v0.44.1
- terraform: Fix `path.module` when using `--chdir`/`--recursive`
- cmd: Fix file arguments handling when using `--chdir`
kayman-mk referenced this pull request in Hapag-Lloyd/terraform-aws-bastion-host-ssm Nov 23, 2023
)

[![Mend Renovate logo
banner](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
|
[terraform-linters/tflint](https://togithub.com/terraform-linters/tflint)
| minor | `v0.45.0` -> `v0.49.0` |

---

### Release Notes

<details>
<summary>terraform-linters/tflint (terraform-linters/tflint)</summary>

###
[`v0.49.0`](https://togithub.com/terraform-linters/tflint/releases/tag/v0.49.0)

[Compare
Source](https://togithub.com/terraform-linters/tflint/compare/v0.48.0...v0.49.0)

##### What's Changed

##### Enhancements

- build(deps): Bump
github.com/terraform-linters/tflint-ruleset-terraform from 0.4.0 to
0.5.0 by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1883](https://togithub.com/terraform-linters/tflint/pull/1883)
    -   This change updates the bundled terraform plugin version
- feat(annotations): Allow a comment at the end of a tflint-ignore
annotation by [@&#8203;papkos](https://togithub.com/papkos) in
[https://github.com/terraform-linters/tflint/pull/1892](https://togithub.com/terraform-linters/tflint/pull/1892)
- tflint: Allow config file to be set via `TFLINT_CONFIG_FILE` by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1903](https://togithub.com/terraform-linters/tflint/pull/1903)
- tflint: Add `tflint-ignore-file` annotation by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1909](https://togithub.com/terraform-linters/tflint/pull/1909)

##### Chores

- Add formula-path to follow formula path changes by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1835](https://togithub.com/terraform-linters/tflint/pull/1835)
- build(deps): Bump sigstore/cosign-installer from 3.1.1 to 3.1.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1839](https://togithub.com/terraform-linters/tflint/pull/1839)
- build(deps): Bump actions/checkout from 3 to 4 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1838](https://togithub.com/terraform-linters/tflint/pull/1838)
- Fix go directive to include patch version by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1842](https://togithub.com/terraform-linters/tflint/pull/1842)
- Replace golang.org/x/exp/slices to slices package by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1836](https://togithub.com/terraform-linters/tflint/pull/1836)
- build(deps): Bump github.com/hashicorp/go-plugin from 1.4.10 to 1.5.1
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1846](https://togithub.com/terraform-linters/tflint/pull/1846)
- build(deps): Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1843](https://togithub.com/terraform-linters/tflint/pull/1843)
- build(deps): Bump github.com/zclconf/go-cty from 1.13.2 to 1.14.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1845](https://togithub.com/terraform-linters/tflint/pull/1845)
- build(deps): Bump google.golang.org/grpc from 1.57.0 to 1.58.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1848](https://togithub.com/terraform-linters/tflint/pull/1848)
- Deprecate tflint-bundle image by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1837](https://togithub.com/terraform-linters/tflint/pull/1837)
- build(deps): Bump google.golang.org/grpc from 1.58.0 to 1.58.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1850](https://togithub.com/terraform-linters/tflint/pull/1850)
- build(deps): Bump docker/build-push-action from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1851](https://togithub.com/terraform-linters/tflint/pull/1851)
- build(deps): Bump docker/login-action from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1852](https://togithub.com/terraform-linters/tflint/pull/1852)
- build(deps): Bump docker/setup-buildx-action from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1853](https://togithub.com/terraform-linters/tflint/pull/1853)
- build(deps): Bump docker/metadata-action from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1854](https://togithub.com/terraform-linters/tflint/pull/1854)
- build(deps): Bump goreleaser/goreleaser-action from 4 to 5 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1855](https://togithub.com/terraform-linters/tflint/pull/1855)
- build(deps): Bump mislav/bump-homebrew-formula-action from 2 to 3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1861](https://togithub.com/terraform-linters/tflint/pull/1861)
- build(deps): Bump google.golang.org/grpc from 1.58.1 to 1.58.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1862](https://togithub.com/terraform-linters/tflint/pull/1862)
- build(deps): Bump github.com/spf13/afero from 1.9.5 to 1.10.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1863](https://togithub.com/terraform-linters/tflint/pull/1863)
- build(deps): Bump github.com/hashicorp/go-plugin from 1.5.1 to 1.5.2
by [@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1864](https://togithub.com/terraform-linters/tflint/pull/1864)
- add test coverage for install script fail by
[@&#8203;bendrucker](https://togithub.com/bendrucker) in
[https://github.com/terraform-linters/tflint/pull/1868](https://togithub.com/terraform-linters/tflint/pull/1868)
- install: move `-e` out of shebang by
[@&#8203;ddelange](https://togithub.com/ddelange) in
[https://github.com/terraform-linters/tflint/pull/1870](https://togithub.com/terraform-linters/tflint/pull/1870)
- build(deps): Bump golang.org/x/oauth2 from 0.12.0 to 0.13.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1879](https://togithub.com/terraform-linters/tflint/pull/1879)
- build(deps): Bump github.com/zclconf/go-cty from 1.14.0 to 1.14.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1880](https://togithub.com/terraform-linters/tflint/pull/1880)
- build(deps): Bump github.com/hashicorp/hcl/v2 from 2.18.0 to 2.18.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1882](https://togithub.com/terraform-linters/tflint/pull/1882)
- build(deps): Bump golang.org/x/net from 0.16.0 to 0.17.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1884](https://togithub.com/terraform-linters/tflint/pull/1884)
- build(deps): Bump github.com/hashicorp/hcl/v2 from 2.18.1 to 2.19.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1885](https://togithub.com/terraform-linters/tflint/pull/1885)
- build(deps): Bump google.golang.org/grpc from 1.58.2 to 1.58.3 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1887](https://togithub.com/terraform-linters/tflint/pull/1887)
- build(deps): Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1886](https://togithub.com/terraform-linters/tflint/pull/1886)
- build(deps): Bump github.com/hashicorp/hcl/v2 from 2.19.0 to 2.19.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1890](https://togithub.com/terraform-linters/tflint/pull/1890)
- build(deps): Bump google.golang.org/grpc from 1.58.3 to 1.59.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1891](https://togithub.com/terraform-linters/tflint/pull/1891)
- build(deps): Bump github.com/google/uuid from 1.3.1 to 1.4.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1898](https://togithub.com/terraform-linters/tflint/pull/1898)
- build(deps): Bump github.com/fatih/color from 1.15.0 to 1.16.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1905](https://togithub.com/terraform-linters/tflint/pull/1905)
- build(deps): Bump golang.org/x/text from 0.13.0 to 0.14.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1906](https://togithub.com/terraform-linters/tflint/pull/1906)

##### New Contributors

- [@&#8203;ddelange](https://togithub.com/ddelange) made their first
contribution in
[https://github.com/terraform-linters/tflint/pull/1870](https://togithub.com/terraform-linters/tflint/pull/1870)
- [@&#8203;papkos](https://togithub.com/papkos) made their first
contribution in
[https://github.com/terraform-linters/tflint/pull/1892](https://togithub.com/terraform-linters/tflint/pull/1892)

**Full Changelog**:
terraform-linters/tflint@v0.48.0...v0.49.0

###
[`v0.48.0`](https://togithub.com/terraform-linters/tflint/releases/tag/v0.48.0)

[Compare
Source](https://togithub.com/terraform-linters/tflint/compare/v0.47.0...v0.48.0)

#### What's Changed

##### Breaking Changes

- Bump tflint-plugin-sdk to v0.18.0 by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1813](https://togithub.com/terraform-linters/tflint/pull/1813)
- This change causes the deprecated `IncludeNotCreated` option to be
ignored. Most plugin users will not be affected.

##### BugFixes

- langserver: Trap os.Interrupt and syscall.SIGTERM by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1809](https://togithub.com/terraform-linters/tflint/pull/1809)
- Bump github.com/hashicorp/hcl to v2.18.0 by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1833](https://togithub.com/terraform-linters/tflint/pull/1833)
- tflint: Allow commas with spaces in annotations by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1834](https://togithub.com/terraform-linters/tflint/pull/1834)

##### Chores

- build(deps): Bump alpine from 3.18.0 to 3.18.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1784](https://togithub.com/terraform-linters/tflint/pull/1784)
- build(deps): Bump google.golang.org/grpc from 1.55.0 to 1.56.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1785](https://togithub.com/terraform-linters/tflint/pull/1785)
- build(deps): Bump golang.org/x/oauth2 from 0.8.0 to 0.9.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1786](https://togithub.com/terraform-linters/tflint/pull/1786)
- build(deps): Bump sigstore/cosign-installer from 3.0.5 to 3.1.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1792](https://togithub.com/terraform-linters/tflint/pull/1792)
- build(deps): Bump google.golang.org/grpc from 1.56.0 to 1.56.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1793](https://togithub.com/terraform-linters/tflint/pull/1793)
- build(deps): Bump sigstore/cosign-installer from 3.1.0 to 3.1.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1798](https://togithub.com/terraform-linters/tflint/pull/1798)
- Remove hard-coded versions from integration tests by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1799](https://togithub.com/terraform-linters/tflint/pull/1799)
- build(deps): Bump golang.org/x/text from 0.10.0 to 0.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1806](https://togithub.com/terraform-linters/tflint/pull/1806)
- build(deps): Bump golang.org/x/crypto from 0.10.0 to 0.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1804](https://togithub.com/terraform-linters/tflint/pull/1804)
- build(deps): Bump golang.org/x/oauth2 from 0.9.0 to 0.10.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1803](https://togithub.com/terraform-linters/tflint/pull/1803)
- build(deps): Bump google.golang.org/grpc from 1.56.1 to 1.56.2 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1805](https://togithub.com/terraform-linters/tflint/pull/1805)
- Remove obsoleted PGP public key by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1800](https://togithub.com/terraform-linters/tflint/pull/1800)
- Add make release for release automation by
[@&#8203;wata727](https://togithub.com/wata727) in
[https://github.com/terraform-linters/tflint/pull/1802](https://togithub.com/terraform-linters/tflint/pull/1802)
- build(deps): Bump google.golang.org/grpc from 1.56.2 to 1.57.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1815](https://togithub.com/terraform-linters/tflint/pull/1815)
- build(deps): Bump golang.org/x/crypto from 0.11.0 to 0.12.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1820](https://togithub.com/terraform-linters/tflint/pull/1820)
- build(deps): Bump golang.org/x/text from 0.11.0 to 0.12.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1821](https://togithub.com/terraform-linters/tflint/pull/1821)
- build(deps): Bump golang.org/x/oauth2 from 0.10.0 to 0.11.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1822](https://togithub.com/terraform-linters/tflint/pull/1822)
- deps: upgrade to use go1.21 by
[@&#8203;chenrui333](https://togithub.com/chenrui333) in
[https://github.com/terraform-linters/tflint/pull/1823](https://togithub.com/terraform-linters/tflint/pull/1823)
- build(deps): Bump github.com/google/uuid from 1.3.0 to 1.3.1 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1829](https://togithub.com/terraform-linters/tflint/pull/1829)
- build(deps): Bump golangci/golangci-lint-action from 3.6.0 to 3.7.0 by
[@&#8203;dependabot](https://togithub.com/dependabot) in
[https://github.com/terraform-linters/tflint/pull/1830](https://togithub.com/terraform-linters/tflint/pull/1830)

**Full Changelog**:
terraform-linters/tflint@v0.47.0...v0.48.0

###
[`v0.47.0`](https://togithub.com/terraform-linters/tflint/releases/tag/v0.47.0)

[Compare
Source](https://togithub.com/terraform-linters/tflint/compare/v0.46.1...v0.47.0)

#### 0.47.0 (2023-06-18)

This release introduces autofix feature. Running `tflint --fix` will
automatically fix issues as possible. Note that not all rules support
autofix. In order to support autofix, plugins must be built with SDK
v0.17+ and implement autofix.

The bundled Terraform ruleset has been updated to v0.4.0 with autofix
support. In other words, for Terraform rules, you can use autofix as it
is. See the [tflint-ruleset-terraform v0.4.0
changelog](https://togithub.com/terraform-linters/tflint-ruleset-terraform/releases/tag/v0.4.0)
for details.

##### Breaking Changes

-
[#&#8203;1749](https://togithub.com/terraform-linters/tflint/pull/1749):
plugin: Drop support for plugin SDK v0.12/v0.13
([@&#8203;wata727](https://togithub.com/wata727))
- Plugins built using SDKs v0.12/v0.13 are no longer supported. If you
get "SDK version is incompatible" error, you need to update the plugin
to use SDK v0.14+.
-
[#&#8203;1750](https://togithub.com/terraform-linters/tflint/pull/1750)
[#&#8203;1781](https://togithub.com/terraform-linters/tflint/pull/1781):
Bump tflint-plugin-sdk and bundled terraform plugin
- The SDK has been updated to v0.17.0 and the bundled Terraform plugin
to v0.4.0. Terraform ruleset v0.3.0 contains breaking changes. Check the
[changelog](https://togithub.com/terraform-linters/tflint-ruleset-terraform/releases/tag/v0.3.0)
for details.
-
[#&#8203;1779](https://togithub.com/terraform-linters/tflint/pull/1779):
cmd: Drop support for CLI arguments
([@&#8203;wata727](https://togithub.com/wata727))
- Argument support has been removed based on the deprecation warning
added in v0.46. As of v0.47, it returns an error instead of a warning.
See
[https://github.com/terraform-linters/tflint/pull/1687](https://togithub.com/terraform-linters/tflint/pull/1687)
for details.

##### Enhancements

-
[#&#8203;1751](https://togithub.com/terraform-linters/tflint/pull/1751):
plugin: support GitHub Enterprise Server as plugin source
([@&#8203;bendrucker](https://togithub.com/bendrucker))
-
[#&#8203;1755](https://togithub.com/terraform-linters/tflint/pull/1755):
Introduce autofix ([@&#8203;wata727](https://togithub.com/wata727))
-
[#&#8203;1773](https://togithub.com/terraform-linters/tflint/pull/1773):
build(deps): Bump github.com/hashicorp/hcl/v2 from 2.16.2 to 2.17.0
- TFLint v0.47 host server return `cty.Value` now supports refinemnet.
This is a change that only affects plugin developers. See [HCL v2.17.0
changelog](https://togithub.com/hashicorp/hcl/releases/tag/v2.17.0) for
details.
-
[#&#8203;1780](https://togithub.com/terraform-linters/tflint/pull/1780):
terraform: Add support for Terraform v1.5
([@&#8203;wata727](https://togithub.com/wata727))
- Added support for the `planttimestamp` and `strcontains` functions.

##### Chores

-
[#&#8203;1754](https://togithub.com/terraform-linters/tflint/pull/1754)
[#&#8203;1766](https://togithub.com/terraform-linters/tflint/pull/1766):
build(deps): Bump sigstore/cosign-installer from 3.0.2 to 3.0.5
-
[#&#8203;1759](https://togithub.com/terraform-linters/tflint/pull/1759):
build(deps): Bump google.golang.org/grpc from 1.54.0 to 1.55.0
-
[#&#8203;1762](https://togithub.com/terraform-linters/tflint/pull/1762):
build(deps): Bump alpine from 3.17.3 to 3.18.0
-
[#&#8203;1763](https://togithub.com/terraform-linters/tflint/pull/1763):
build(deps): Bump golang.org/x/oauth2 from 0.7.0 to 0.8.0
-
[#&#8203;1764](https://togithub.com/terraform-linters/tflint/pull/1764):
build(deps): Bump golang.org/x/crypto from 0.8.0 to 0.9.0
-
[#&#8203;1767](https://togithub.com/terraform-linters/tflint/pull/1767):
build(deps): Bump github.com/zclconf/go-cty from 1.13.1 to 1.13.2
-
[#&#8203;1771](https://togithub.com/terraform-linters/tflint/pull/1771):
fix(install_linux): Update unzip arguments
([@&#8203;alexjurkiewicz](https://togithub.com/alexjurkiewicz))
-
[#&#8203;1772](https://togithub.com/terraform-linters/tflint/pull/1772)
[#&#8203;1775](https://togithub.com/terraform-linters/tflint/pull/1775):
build(deps): Bump golangci/golangci-lint-action from 3.4.0 to 3.6.0
-
[#&#8203;1774](https://togithub.com/terraform-linters/tflint/pull/1774):
build(deps): Bump github.com/hashicorp/go-plugin from 1.4.9 to 1.4.10
-
[#&#8203;1776](https://togithub.com/terraform-linters/tflint/pull/1776):
build(deps): Bump golang.org/x/text from 0.9.0 to 0.10.0

###
[`v0.46.1`](https://togithub.com/terraform-linters/tflint/releases/tag/v0.46.1)

[Compare
Source](https://togithub.com/terraform-linters/tflint/compare/v0.46.0...v0.46.1)

#### 0.46.1 (2023-04-22)

##### BugFixes

-
[#&#8203;1746](https://togithub.com/terraform-linters/tflint/pull/1746):
sarif: fix incorrect `endLine`
([@&#8203;tbutler-qontigo](https://togithub.com/tbutler-qontigo))

##### Chores

-
[#&#8203;1738](https://togithub.com/terraform-linters/tflint/pull/1738):
build(deps): Bump sigstore/cosign-installer from 3.0.1 to 3.0.2
-
[#&#8203;1739](https://togithub.com/terraform-linters/tflint/pull/1739):
build(deps): Bump golang.org/x/crypto from 0.7.0 to 0.8.0
-
[#&#8203;1741](https://togithub.com/terraform-linters/tflint/pull/1741):
build(deps): Bump golang.org/x/oauth2 from 0.6.0 to 0.7.0
-
[#&#8203;1743](https://togithub.com/terraform-linters/tflint/pull/1743):
build(deps): Bump github.com/terraform-linters/tflint-plugin-sdk from
0.16.0 to 0.16.1

###
[`v0.46.0`](https://togithub.com/terraform-linters/tflint/releases/tag/v0.46.0)

[Compare
Source](https://togithub.com/terraform-linters/tflint/compare/v0.45.0...v0.46.0)

#### 0.46.0 (2023-04-09)

This release adds deprecation warnings for future breaking changes. Warn
when using command line arguments like `tflint dir` and `tflint
main.tf`. The former can be replaced with `tflint --chdir=dir` and the
latter with `tflint --filter=main.tf`. See
[https://github.com/terraform-linters/tflint/pull/1687](https://togithub.com/terraform-linters/tflint/pull/1687)
for details.

The GPG key signed signature attached to TFLint releases has been
deprecated. This signature will not be added to releases after May 1,
2023. Please migrate to verification with Cosign.

##### Enhancements

-
[#&#8203;1700](https://togithub.com/terraform-linters/tflint/pull/1700):
plugin: Handle eval errors on the plugin side
([@&#8203;wata727](https://togithub.com/wata727))
-
[#&#8203;1722](https://togithub.com/terraform-linters/tflint/pull/1722):
plugin: Handle sensitive values on the plugin side
([@&#8203;wata727](https://togithub.com/wata727))
-
[#&#8203;1730](https://togithub.com/terraform-linters/tflint/pull/1730):
deps: Bump tflint-plugin-sdk to v0.16.0
([@&#8203;wata727](https://togithub.com/wata727))

##### Changes

-
[#&#8203;1687](https://togithub.com/terraform-linters/tflint/pull/1687):
cmd: Deprecate CLI arguments
([@&#8203;wata727](https://togithub.com/wata727))

##### BugFixes

-
[#&#8203;1686](https://togithub.com/terraform-linters/tflint/pull/1686):
sarif: add tool version, exclude empty range/position, slash paths
([@&#8203;bendrucker](https://togithub.com/bendrucker))

##### Chores

-
[#&#8203;1587](https://togithub.com/terraform-linters/tflint/pull/1587):
Deprecate GPG key signed signature
([@&#8203;wata727](https://togithub.com/wata727))
-
[#&#8203;1662](https://togithub.com/terraform-linters/tflint/pull/1662):
deps: bump to go1.20
([@&#8203;chenrui333](https://togithub.com/chenrui333)
[@&#8203;bendrucker](https://togithub.com/bendrucker))
-
[#&#8203;1681](https://togithub.com/terraform-linters/tflint/pull/1681):
docs: Update usage output
([@&#8203;wata727](https://togithub.com/wata727))
-
[#&#8203;1682](https://togithub.com/terraform-linters/tflint/pull/1682)
[#&#8203;1733](https://togithub.com/terraform-linters/tflint/pull/1733):
build(deps): Bump alpine from 3.17.1 to 3.17.3
-
[#&#8203;1683](https://togithub.com/terraform-linters/tflint/pull/1683):
build(deps): Bump golang.org/x/text from 0.6.0 to 0.7.0
-
[#&#8203;1684](https://togithub.com/terraform-linters/tflint/pull/1684):
build(deps): Bump github.com/hashicorp/hcl/v2 from 2.16.0 to 2.16.1
-
[#&#8203;1685](https://togithub.com/terraform-linters/tflint/pull/1685)
[#&#8203;1729](https://togithub.com/terraform-linters/tflint/pull/1729):
build(deps): Bump google.golang.org/grpc from 1.52.3 to 1.54.0
-
[#&#8203;1691](https://togithub.com/terraform-linters/tflint/pull/1691):
build(deps): Bump github.com/hashicorp/go-getter from 1.6.2 to 1.7.0
-
[#&#8203;1692](https://togithub.com/terraform-linters/tflint/pull/1692):
build(deps): Bump golang.org/x/net from 0.5.0 to 0.7.0
-
[#&#8203;1695](https://togithub.com/terraform-linters/tflint/pull/1695)
[#&#8203;1714](https://togithub.com/terraform-linters/tflint/pull/1714):
build(deps): Bump golang.org/x/oauth2 from 0.4.0 to 0.6.0
-
[#&#8203;1701](https://togithub.com/terraform-linters/tflint/pull/1701):
build(deps): Bump github.com/sourcegraph/jsonrpc2 from 0.1.0 to 0.2.0
-
[#&#8203;1702](https://togithub.com/terraform-linters/tflint/pull/1702)
[#&#8203;1712](https://togithub.com/terraform-linters/tflint/pull/1712):
build(deps): Bump github.com/spf13/afero from 1.9.3 to 1.9.5
-
[#&#8203;1704](https://togithub.com/terraform-linters/tflint/pull/1704)
[#&#8203;1711](https://togithub.com/terraform-linters/tflint/pull/1711):
build(deps): Bump golang.org/x/crypto from
0.0.0-20220517005047-85d78b3ac167 to 0.7.0
-
[#&#8203;1708](https://togithub.com/terraform-linters/tflint/pull/1708):
docs: revise plugin rate limiting guide
([@&#8203;bendrucker](https://togithub.com/bendrucker))
-
[#&#8203;1710](https://togithub.com/terraform-linters/tflint/pull/1710):
build(deps): Bump sigstore/cosign-installer from 2.8.1 to 3.0.1
-
[#&#8203;1715](https://togithub.com/terraform-linters/tflint/pull/1715):
build(deps): Bump github.com/hashicorp/go-plugin from 1.4.8 to 1.4.9
-
[#&#8203;1717](https://togithub.com/terraform-linters/tflint/pull/1717):
build(deps): Bump github.com/fatih/color from 1.14.1 to 1.15.0
-
[#&#8203;1723](https://togithub.com/terraform-linters/tflint/pull/1723):
build(deps): Bump actions/setup-go from 3 to 4
-
[#&#8203;1724](https://togithub.com/terraform-linters/tflint/pull/1724):
build(deps): Bump github.com/zclconf/go-cty from 1.12.1 to 1.13.1
-
[#&#8203;1736](https://togithub.com/terraform-linters/tflint/pull/1736):
Fix GoReleaser config for Cosign v2
([@&#8203;wata727](https://togithub.com/wata727))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/Hapag-Lloyd/terraform-aws-bastion-host-ssm).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy41OS44IiwidXBkYXRlZEluVmVyIjoiMzcuNTkuOCIsInRhcmdldEJyYW5jaCI6Im1haW4ifQ==-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant