Skip to content

Commit

Permalink
Bump up version to v0.46.0
Browse files Browse the repository at this point in the history
  • Loading branch information
wata727 committed Apr 8, 2023
1 parent 05475c1 commit 6f2e532
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 23 deletions.
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ body:
- type: input
attributes:
label: TFLint Version
placeholder: '0.45.0'
placeholder: '0.46.0'
validations:
required: true
- type: input
Expand Down
43 changes: 43 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,46 @@
## 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 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

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

### Changes

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

### BugFixes

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

### Chores

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

## 0.45.0 (2023-02-13)

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`.
Expand Down
40 changes: 20 additions & 20 deletions formatter/sarif_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,15 @@ func Test_sarifPrint(t *testing.T) {
{
Name: "no issues",
Issues: tflint.Issues{},
Stdout: `{
Stdout: fmt.Sprintf(`{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
"runs": [
{
"tool": {
"driver": {
"name": "tflint",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
Expand All @@ -41,14 +41,14 @@ func Test_sarifPrint(t *testing.T) {
"tool": {
"driver": {
"name": "tflint-errors",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
"results": []
}
]
}`,
}`, tflint.Version, tflint.Version),
},
{
Name: "issues",
Expand All @@ -63,15 +63,15 @@ func Test_sarifPrint(t *testing.T) {
},
},
},
Stdout: `{
Stdout: fmt.Sprintf(`{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
"runs": [
{
"tool": {
"driver": {
"name": "tflint",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint",
"rules": [
{
Expand Down Expand Up @@ -113,14 +113,14 @@ func Test_sarifPrint(t *testing.T) {
"tool": {
"driver": {
"name": "tflint-errors",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
"results": []
}
]
}`,
}`, tflint.Version, tflint.Version),
},
{
Name: "issues in directories",
Expand All @@ -135,15 +135,15 @@ func Test_sarifPrint(t *testing.T) {
},
},
},
Stdout: `{
Stdout: fmt.Sprintf(`{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
"runs": [
{
"tool": {
"driver": {
"name": "tflint",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint",
"rules": [
{
Expand Down Expand Up @@ -185,14 +185,14 @@ func Test_sarifPrint(t *testing.T) {
"tool": {
"driver": {
"name": "tflint-errors",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
"results": []
}
]
}`,
}`, tflint.Version, tflint.Version),
},
{
Name: "Issues with missing source positions",
Expand All @@ -206,15 +206,15 @@ func Test_sarifPrint(t *testing.T) {
},
},
Error: fmt.Errorf("Failed to work; %w", errors.New("I don't feel like working")),
Stdout: `{
Stdout: fmt.Sprintf(`{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
"runs": [
{
"tool": {
"driver": {
"name": "tflint",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint",
"rules": [
{
Expand Down Expand Up @@ -250,7 +250,7 @@ func Test_sarifPrint(t *testing.T) {
"tool": {
"driver": {
"name": "tflint-errors",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
Expand All @@ -265,7 +265,7 @@ func Test_sarifPrint(t *testing.T) {
]
}
]
}`,
}`, tflint.Version, tflint.Version),
},
{
Name: "HCL diagnostics are surfaced as tflint-errors",
Expand All @@ -284,15 +284,15 @@ func Test_sarifPrint(t *testing.T) {
},
},
),
Stdout: `{
Stdout: fmt.Sprintf(`{
"version": "2.1.0",
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
"runs": [
{
"tool": {
"driver": {
"name": "tflint",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
Expand All @@ -302,7 +302,7 @@ func Test_sarifPrint(t *testing.T) {
"tool": {
"driver": {
"name": "tflint-errors",
"version": "0.45.0",
"version": "%s",
"informationUri": "https://github.com/terraform-linters/tflint"
}
},
Expand Down Expand Up @@ -334,7 +334,7 @@ func Test_sarifPrint(t *testing.T) {
]
}
]
}`,
}`, tflint.Version, tflint.Version),
},
}

Expand Down
2 changes: 1 addition & 1 deletion integrationtest/inspection/incompatible-host/result.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"issues": [],
"errors": [
{
"message": "Failed to satisfy version constraints; tflint-ruleset-incompatiblehost requires >= 1.0, but TFLint version is 0.45.0",
"message": "Failed to satisfy version constraints; tflint-ruleset-incompatiblehost requires >= 1.0, but TFLint version is 0.46.0",
"severity": "error"
}
]
Expand Down
2 changes: 1 addition & 1 deletion tflint/meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
)

// Version is application version
var Version *version.Version = version.Must(version.NewVersion("0.45.0"))
var Version *version.Version = version.Must(version.NewVersion("0.46.0"))

// ReferenceLink returns the rule reference link
func ReferenceLink(name string) string {
Expand Down

0 comments on commit 6f2e532

Please sign in to comment.