Skip to content

Commit 6f2e532

Browse files
committed
Bump up version to v0.46.0
1 parent 05475c1 commit 6f2e532

File tree

5 files changed

+66
-23
lines changed

5 files changed

+66
-23
lines changed

.github/ISSUE_TEMPLATE/bug.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ body:
4646
- type: input
4747
attributes:
4848
label: TFLint Version
49-
placeholder: '0.45.0'
49+
placeholder: '0.46.0'
5050
validations:
5151
required: true
5252
- type: input

CHANGELOG.md

+43
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,46 @@
1+
## 0.46.0 (2023-04-09)
2+
3+
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.
4+
5+
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.
6+
7+
### Enhancements
8+
9+
- [#1700](https://github.com/terraform-linters/tflint/pull/1700): plugin: Handle eval errors on the plugin side ([@wata727](https://github.com/wata727))
10+
- [#1722](https://github.com/terraform-linters/tflint/pull/1722): plugin: Handle sensitive values on the plugin side ([@wata727](https://github.com/wata727))
11+
- [#1730](https://github.com/terraform-linters/tflint/pull/1730): deps: Bump tflint-plugin-sdk to v0.16.0 ([@wata727](https://github.com/wata727))
12+
13+
### Changes
14+
15+
- [#1687](https://github.com/terraform-linters/tflint/pull/1687): cmd: Deprecate CLI arguments ([@wata727](https://github.com/wata727))
16+
17+
### BugFixes
18+
19+
- [#1686](https://github.com/terraform-linters/tflint/pull/1686): sarif: add tool version, exclude empty range/position, slash paths ([@bendrucker](https://github.com/bendrucker))
20+
21+
### Chores
22+
23+
- [#1587](https://github.com/terraform-linters/tflint/pull/1587): Deprecate GPG key signed signature ([@wata727](https://github.com/wata727))
24+
- [#1662](https://github.com/terraform-linters/tflint/pull/1662): deps: bump to go1.20 ([@chenrui333](https://github.com/chenrui333) [@bendrucker](https://github.com/bendrucker))
25+
- [#1681](https://github.com/terraform-linters/tflint/pull/1681): docs: Update usage output ([@wata727](https://github.com/wata727))
26+
- [#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
27+
- [#1683](https://github.com/terraform-linters/tflint/pull/1683): build(deps): Bump golang.org/x/text from 0.6.0 to 0.7.0
28+
- [#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
29+
- [#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
30+
- [#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
31+
- [#1692](https://github.com/terraform-linters/tflint/pull/1692): build(deps): Bump golang.org/x/net from 0.5.0 to 0.7.0
32+
- [#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
33+
- [#1701](https://github.com/terraform-linters/tflint/pull/1701): build(deps): Bump github.com/sourcegraph/jsonrpc2 from 0.1.0 to 0.2.0
34+
- [#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
35+
- [#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
36+
- [#1708](https://github.com/terraform-linters/tflint/pull/1708): docs: revise plugin rate limiting guide ([@bendrucker](https://github.com/bendrucker))
37+
- [#1710](https://github.com/terraform-linters/tflint/pull/1710): build(deps): Bump sigstore/cosign-installer from 2.8.1 to 3.0.1
38+
- [#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
39+
- [#1717](https://github.com/terraform-linters/tflint/pull/1717): build(deps): Bump github.com/fatih/color from 1.14.1 to 1.15.0
40+
- [#1723](https://github.com/terraform-linters/tflint/pull/1723): build(deps): Bump actions/setup-go from 3 to 4
41+
- [#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
42+
- [#1736](https://github.com/terraform-linters/tflint/pull/1736): Fix GoReleaser config for Cosign v2 ([@wata727](https://github.com/wata727))
43+
144
## 0.45.0 (2023-02-13)
245

346
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`.

formatter/sarif_test.go

+20-20
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ func Test_sarifPrint(t *testing.T) {
2323
{
2424
Name: "no issues",
2525
Issues: tflint.Issues{},
26-
Stdout: `{
26+
Stdout: fmt.Sprintf(`{
2727
"version": "2.1.0",
2828
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
2929
"runs": [
3030
{
3131
"tool": {
3232
"driver": {
3333
"name": "tflint",
34-
"version": "0.45.0",
34+
"version": "%s",
3535
"informationUri": "https://github.com/terraform-linters/tflint"
3636
}
3737
},
@@ -41,14 +41,14 @@ func Test_sarifPrint(t *testing.T) {
4141
"tool": {
4242
"driver": {
4343
"name": "tflint-errors",
44-
"version": "0.45.0",
44+
"version": "%s",
4545
"informationUri": "https://github.com/terraform-linters/tflint"
4646
}
4747
},
4848
"results": []
4949
}
5050
]
51-
}`,
51+
}`, tflint.Version, tflint.Version),
5252
},
5353
{
5454
Name: "issues",
@@ -63,15 +63,15 @@ func Test_sarifPrint(t *testing.T) {
6363
},
6464
},
6565
},
66-
Stdout: `{
66+
Stdout: fmt.Sprintf(`{
6767
"version": "2.1.0",
6868
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
6969
"runs": [
7070
{
7171
"tool": {
7272
"driver": {
7373
"name": "tflint",
74-
"version": "0.45.0",
74+
"version": "%s",
7575
"informationUri": "https://github.com/terraform-linters/tflint",
7676
"rules": [
7777
{
@@ -113,14 +113,14 @@ func Test_sarifPrint(t *testing.T) {
113113
"tool": {
114114
"driver": {
115115
"name": "tflint-errors",
116-
"version": "0.45.0",
116+
"version": "%s",
117117
"informationUri": "https://github.com/terraform-linters/tflint"
118118
}
119119
},
120120
"results": []
121121
}
122122
]
123-
}`,
123+
}`, tflint.Version, tflint.Version),
124124
},
125125
{
126126
Name: "issues in directories",
@@ -135,15 +135,15 @@ func Test_sarifPrint(t *testing.T) {
135135
},
136136
},
137137
},
138-
Stdout: `{
138+
Stdout: fmt.Sprintf(`{
139139
"version": "2.1.0",
140140
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
141141
"runs": [
142142
{
143143
"tool": {
144144
"driver": {
145145
"name": "tflint",
146-
"version": "0.45.0",
146+
"version": "%s",
147147
"informationUri": "https://github.com/terraform-linters/tflint",
148148
"rules": [
149149
{
@@ -185,14 +185,14 @@ func Test_sarifPrint(t *testing.T) {
185185
"tool": {
186186
"driver": {
187187
"name": "tflint-errors",
188-
"version": "0.45.0",
188+
"version": "%s",
189189
"informationUri": "https://github.com/terraform-linters/tflint"
190190
}
191191
},
192192
"results": []
193193
}
194194
]
195-
}`,
195+
}`, tflint.Version, tflint.Version),
196196
},
197197
{
198198
Name: "Issues with missing source positions",
@@ -206,15 +206,15 @@ func Test_sarifPrint(t *testing.T) {
206206
},
207207
},
208208
Error: fmt.Errorf("Failed to work; %w", errors.New("I don't feel like working")),
209-
Stdout: `{
209+
Stdout: fmt.Sprintf(`{
210210
"version": "2.1.0",
211211
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
212212
"runs": [
213213
{
214214
"tool": {
215215
"driver": {
216216
"name": "tflint",
217-
"version": "0.45.0",
217+
"version": "%s",
218218
"informationUri": "https://github.com/terraform-linters/tflint",
219219
"rules": [
220220
{
@@ -250,7 +250,7 @@ func Test_sarifPrint(t *testing.T) {
250250
"tool": {
251251
"driver": {
252252
"name": "tflint-errors",
253-
"version": "0.45.0",
253+
"version": "%s",
254254
"informationUri": "https://github.com/terraform-linters/tflint"
255255
}
256256
},
@@ -265,7 +265,7 @@ func Test_sarifPrint(t *testing.T) {
265265
]
266266
}
267267
]
268-
}`,
268+
}`, tflint.Version, tflint.Version),
269269
},
270270
{
271271
Name: "HCL diagnostics are surfaced as tflint-errors",
@@ -284,15 +284,15 @@ func Test_sarifPrint(t *testing.T) {
284284
},
285285
},
286286
),
287-
Stdout: `{
287+
Stdout: fmt.Sprintf(`{
288288
"version": "2.1.0",
289289
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json",
290290
"runs": [
291291
{
292292
"tool": {
293293
"driver": {
294294
"name": "tflint",
295-
"version": "0.45.0",
295+
"version": "%s",
296296
"informationUri": "https://github.com/terraform-linters/tflint"
297297
}
298298
},
@@ -302,7 +302,7 @@ func Test_sarifPrint(t *testing.T) {
302302
"tool": {
303303
"driver": {
304304
"name": "tflint-errors",
305-
"version": "0.45.0",
305+
"version": "%s",
306306
"informationUri": "https://github.com/terraform-linters/tflint"
307307
}
308308
},
@@ -334,7 +334,7 @@ func Test_sarifPrint(t *testing.T) {
334334
]
335335
}
336336
]
337-
}`,
337+
}`, tflint.Version, tflint.Version),
338338
},
339339
}
340340

integrationtest/inspection/incompatible-host/result.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"issues": [],
33
"errors": [
44
{
5-
"message": "Failed to satisfy version constraints; tflint-ruleset-incompatiblehost requires >= 1.0, but TFLint version is 0.45.0",
5+
"message": "Failed to satisfy version constraints; tflint-ruleset-incompatiblehost requires >= 1.0, but TFLint version is 0.46.0",
66
"severity": "error"
77
}
88
]

tflint/meta.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import (
77
)
88

99
// Version is application version
10-
var Version *version.Version = version.Must(version.NewVersion("0.45.0"))
10+
var Version *version.Version = version.Must(version.NewVersion("0.46.0"))
1111

1212
// ReferenceLink returns the rule reference link
1313
func ReferenceLink(name string) string {

0 commit comments

Comments
 (0)