diff --git a/.github/ISSUE_TEMPLATE/bug.yml b/.github/ISSUE_TEMPLATE/bug.yml index bf4a2fce6..a1998f563 100644 --- a/.github/ISSUE_TEMPLATE/bug.yml +++ b/.github/ISSUE_TEMPLATE/bug.yml @@ -46,7 +46,7 @@ body: - type: input attributes: label: TFLint Version - placeholder: '0.49.0' + placeholder: '0.50.0' validations: required: true - type: input diff --git a/tflint/meta.go b/tflint/meta.go index 1ffe3c142..f8dd9d728 100644 --- a/tflint/meta.go +++ b/tflint/meta.go @@ -7,7 +7,7 @@ import ( ) // Version is application version -var Version *version.Version = version.Must(version.NewVersion("0.49.0")) +var Version *version.Version = version.Must(version.NewVersion("0.50.0")) // ReferenceLink returns the rule reference link func ReferenceLink(name string) string { diff --git a/tools/release/release-note.md b/tools/release/release-note.md index 2d318c8c9..e2902ffa3 100644 --- a/tools/release/release-note.md +++ b/tools/release/release-note.md @@ -1,52 +1,37 @@ ## What's Changed +### Breaking Changes +* Call local modules by default by @wata727 in https://github.com/terraform-linters/tflint/pull/1918 + * Module inspection is now enabled by default for modules whose source is a relative path. Note that "module inspection" will be called "calling modules" after this change. See also https://github.com/terraform-linters/tflint/issues/1066 + * CLI flag `--module` has been changed to `--call-module-type`. For backward compatibility, `--module` will continue to work, but it will be removed in a future version, so we recommend migrating early. The same applies to the `module` attribute of the configuration file. + * `--module` flag is replaced by `--call-module-type=all` and `--no-module` (previous default) is replaced by `--call-module-type=none` + * For modules with many local module calls, this change may result in performance degradation. If this is not acceptable, you can keep the previous default by specifying `--call-module-type=none`. +* Make assignments to undeclared variables an error by @wata727 in https://github.com/terraform-linters/tflint/pull/1941 + * In line with Terraform behavior, assignments using the `--var` flag etc. to undeclared variables now result in an error. To avoid this, remove unnecessary variable assignments. + ### Enhancements +* Print the working directory on error in recursive inspection by @wata727 in https://github.com/terraform-linters/tflint/pull/1933 +* Enable per-runner parallelism by @wata727 in https://github.com/terraform-linters/tflint/pull/1944 -* build(deps): Bump github.com/terraform-linters/tflint-ruleset-terraform from 0.4.0 to 0.5.0 by @dependabot in https://github.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 @papkos in https://github.com/terraform-linters/tflint/pull/1892 -* tflint: Allow config file to be set via `TFLINT_CONFIG_FILE` by @wata727 in https://github.com/terraform-linters/tflint/pull/1903 -* tflint: Add `tflint-ignore-file` annotation by @wata727 in https://github.com/terraform-linters/tflint/pull/1909 +### BugFixes +* Exit with an error if the explicitly passed `.tflint.hcl` does not exist by @wata727 in https://github.com/terraform-linters/tflint/pull/1940 ### Chores +* build(deps): Bump golang.org/x/oauth2 from 0.13.0 to 0.14.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1913 +* build(deps): Bump sigstore/cosign-installer from 3.1.2 to 3.2.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1915 +* build(deps): Bump github.com/hashicorp/go-plugin from 1.5.2 to 1.6.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1917 +* docs: Remove mention of directory arguments by @wata727 in https://github.com/terraform-linters/tflint/pull/1921 +* build(deps): Bump golang.org/x/crypto from 0.15.0 to 0.16.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1923 +* build(deps): Bump golang.org/x/oauth2 from 0.14.0 to 0.15.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1931 +* build(deps): Bump github.com/spf13/afero from 1.10.0 to 1.11.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1932 +* build(deps): Bump actions/setup-go from 4 to 5 by @dependabot in https://github.com/terraform-linters/tflint/pull/1936 +* build(deps): Bump sigstore/cosign-installer from 3.2.0 to 3.3.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1937 +* build(deps): Bump alpine from 3.18 to 3.19 by @dependabot in https://github.com/terraform-linters/tflint/pull/1938 +* Stop using backticks for emphasis by @wata727 in https://github.com/terraform-linters/tflint/pull/1934 +* Avoid escaping newlines by @wata727 in https://github.com/terraform-linters/tflint/pull/1942 +* build(deps): Bump golang.org/x/crypto from 0.16.0 to 0.17.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1945 +* build(deps): Bump github.com/google/uuid from 1.4.0 to 1.5.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1947 +* build(deps): Bump google.golang.org/grpc from 1.59.0 to 1.60.1 by @dependabot in https://github.com/terraform-linters/tflint/pull/1948 -* Add formula-path to follow formula path changes by @wata727 in https://github.com/terraform-linters/tflint/pull/1835 -* build(deps): Bump sigstore/cosign-installer from 3.1.1 to 3.1.2 by @dependabot in https://github.com/terraform-linters/tflint/pull/1839 -* build(deps): Bump actions/checkout from 3 to 4 by @dependabot in https://github.com/terraform-linters/tflint/pull/1838 -* Fix go directive to include patch version by @wata727 in https://github.com/terraform-linters/tflint/pull/1842 -* Replace golang.org/x/exp/slices to slices package by @wata727 in https://github.com/terraform-linters/tflint/pull/1836 -* build(deps): Bump github.com/hashicorp/go-plugin from 1.4.10 to 1.5.1 by @dependabot in https://github.com/terraform-linters/tflint/pull/1846 -* build(deps): Bump golang.org/x/oauth2 from 0.11.0 to 0.12.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1843 -* build(deps): Bump github.com/zclconf/go-cty from 1.13.2 to 1.14.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1845 -* build(deps): Bump google.golang.org/grpc from 1.57.0 to 1.58.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1848 -* Deprecate tflint-bundle image by @wata727 in https://github.com/terraform-linters/tflint/pull/1837 -* build(deps): Bump google.golang.org/grpc from 1.58.0 to 1.58.1 by @dependabot in https://github.com/terraform-linters/tflint/pull/1850 -* build(deps): Bump docker/build-push-action from 4 to 5 by @dependabot in https://github.com/terraform-linters/tflint/pull/1851 -* build(deps): Bump docker/login-action from 2 to 3 by @dependabot in https://github.com/terraform-linters/tflint/pull/1852 -* build(deps): Bump docker/setup-buildx-action from 2 to 3 by @dependabot in https://github.com/terraform-linters/tflint/pull/1853 -* build(deps): Bump docker/metadata-action from 4 to 5 by @dependabot in https://github.com/terraform-linters/tflint/pull/1854 -* build(deps): Bump goreleaser/goreleaser-action from 4 to 5 by @dependabot in https://github.com/terraform-linters/tflint/pull/1855 -* build(deps): Bump mislav/bump-homebrew-formula-action from 2 to 3 by @dependabot in https://github.com/terraform-linters/tflint/pull/1861 -* build(deps): Bump google.golang.org/grpc from 1.58.1 to 1.58.2 by @dependabot in https://github.com/terraform-linters/tflint/pull/1862 -* build(deps): Bump github.com/spf13/afero from 1.9.5 to 1.10.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1863 -* build(deps): Bump github.com/hashicorp/go-plugin from 1.5.1 to 1.5.2 by @dependabot in https://github.com/terraform-linters/tflint/pull/1864 -* add test coverage for install script fail by @bendrucker in https://github.com/terraform-linters/tflint/pull/1868 -* install: move `-e` out of shebang by @ddelange in https://github.com/terraform-linters/tflint/pull/1870 -* build(deps): Bump golang.org/x/oauth2 from 0.12.0 to 0.13.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1879 -* build(deps): Bump github.com/zclconf/go-cty from 1.14.0 to 1.14.1 by @dependabot in https://github.com/terraform-linters/tflint/pull/1880 -* build(deps): Bump github.com/hashicorp/hcl/v2 from 2.18.0 to 2.18.1 by @dependabot in https://github.com/terraform-linters/tflint/pull/1882 -* build(deps): Bump golang.org/x/net from 0.16.0 to 0.17.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1884 -* build(deps): Bump github.com/hashicorp/hcl/v2 from 2.18.1 to 2.19.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1885 -* build(deps): Bump google.golang.org/grpc from 1.58.2 to 1.58.3 by @dependabot in https://github.com/terraform-linters/tflint/pull/1887 -* build(deps): Bump github.com/google/go-cmp from 0.5.9 to 0.6.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1886 -* build(deps): Bump github.com/hashicorp/hcl/v2 from 2.19.0 to 2.19.1 by @dependabot in https://github.com/terraform-linters/tflint/pull/1890 -* build(deps): Bump google.golang.org/grpc from 1.58.3 to 1.59.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1891 -* build(deps): Bump github.com/google/uuid from 1.3.1 to 1.4.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1898 -* build(deps): Bump github.com/fatih/color from 1.15.0 to 1.16.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1905 -* build(deps): Bump golang.org/x/text from 0.13.0 to 0.14.0 by @dependabot in https://github.com/terraform-linters/tflint/pull/1906 - -## New Contributors -* @ddelange made their first contribution in https://github.com/terraform-linters/tflint/pull/1870 -* @papkos made their first contribution in https://github.com/terraform-linters/tflint/pull/1892 -**Full Changelog**: https://github.com/terraform-linters/tflint/compare/v0.48.0...v0.49.0 +**Full Changelog**: https://github.com/terraform-linters/tflint/compare/v0.49.0...v0.50.0