Releases: suzuki-shunsuke/tfcmt
v4.7.0
Pull Requests | Issues | v4.6.1...v4.7.0
We roughly checked if tfcmt worked with OpenTofu, then we fixed some issues that tfcmt didn't work with OpenTofu.
We tested tfcmt with OpenTofu v1.6.0-alpha2.
tfcmt seems to work with OpenTofu.
You can simply replace Terraform CLI with OpenTofu CLI.
$ tfcmt plan -- tofu plan
$ tfcmt apply -- tofu applyBut we didn't check deeply. We just checked roughly.
And we don't promise OpenTofu Support for now.
We primary support Terraform.
v4.6.1
Pull Requests | Issues | v4.6.0...v4.6.1
Others
#952 Fix Go Module Path
This update fixes the issue that tfcmt can't be installed by go install.
$ go install github.com/suzuki-shunsuke/tfcmt/cmd/[email protected]
go: github.com/suzuki-shunsuke/tfcmt/cmd/[email protected]: github.com/suzuki-shunsuke/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/suzuki-shunsuke/tfcmt/v4")
$ go install github.com/suzuki-shunsuke/tfcmt/v4/cmd/[email protected]
go: github.com/suzuki-shunsuke/tfcmt/v4/cmd/[email protected]: github.com/suzuki-shunsuke/[email protected]: invalid version: module contains a go.mod file, so module path must match major version ("github.com/suzuki-shunsuke/tfcmt/v4")As of v4.6.1, you can install tfcmt by go install.
$ go install github.com/suzuki-shunsuke/tfcmt/v4/cmd/[email protected]
go: downloading github.com/suzuki-shunsuke/tfcmt/v4 v4.6.1#947 Update Go 1.21.1 to 1.21.2
#890 Update github.com/google/go-github/v53 to v55
Addressed go-github's breaking changes.
#711 Update dependency golangci/golangci-lint to v1.54.2
Fixed lint errors.
v4.6.1-1
Pull Requests | Issues | v4.6.0...v4.6.1-1
Changelog
- cb656cf test
- 475ee37 chore(deps): update dependency golangci/golangci-lint to v1.54.2 (#711)
- 3e7f2ec fix(deps): update module github.com/google/go-github/v53 to v55 (#890)
- 6a4db81 fix: update Go Module Path (#952)
- d568ca7 chore(aqua): update aqua-checksums.json
- 7ad2a09 chore(deps): update dependency aquaproj/aqua-registry to v4.59.0
- 3cdfffc chore(go): go mod tidy
- 00d1374 fix(deps): update module golang.org/x/oauth2 to v0.13.0
- 28ecddf chore(aqua): update aqua-checksums.json
- 04f2994 chore(deps): update dependency aquaproj/aqua-registry to v4.58.0
- d531a70 chore(deps): update dependency aquaproj/aqua to v2.12.2
- bc5d20f chore(deps): update dependency golang/go to v1.21.2
- 90f5698 chore(aqua): update aqua-checksums.json
- e5d8570 chore(deps): update dependency aquaproj/aqua-registry to v4.57.0
- 65c82fb chore(aqua): update aqua-checksums.json
- abdd0af chore(deps): update dependency aquaproj/aqua-registry to v4.56.0
- cab3588 chore(aqua): update aqua-checksums.json
- 0f15eb5 chore(deps): update dependency aquaproj/aqua-registry to v4.55.0
- ceccd4d chore(aqua): update aqua-checksums.json
- a31ba1f chore(deps): update dependency aquaproj/aqua-registry to v4.54.0
- 7b619d6 chore(deps): update dependency aquaproj/aqua to v2.12.1
- 738ae95 chore(aqua): update aqua-checksums.json
- 52be44b chore(deps): update dependency aquaproj/aqua-registry to v4.53.0
- 8743c6a chore(deps): update dependency goreleaser/goreleaser to v1.21.2 (#938)
- bc3a5e3 chore(deps): update dependency aquaproj/aqua-renovate-config to v1.11.0
- 4d32656 chore(aqua): update aqua-checksums.json
- da74904 chore(deps): update dependency goreleaser/goreleaser to v1.21.1
- 8808c67 chore(aqua): update aqua-checksums.json
- 1a4f92c chore(deps): update dependency goreleaser/goreleaser to v1.21.0
- e67e468 chore(aqua): update aqua-checksums.json
- 290acb5 chore(deps): update dependency aquaproj/aqua-registry to v4.52.1
- 6a59478 chore(deps): update actions/checkout action to v4.1.0
v4.6.0
Pull Requests | Issues | v4.5.1...v4.6.0
Features
#930 #932 List imported or moved resources even if they are changed or replaced
tfcmt v4.5.0 now lists imported or moved resources, but doesn't list them if they are changed or replaced.
This release enables to list imported or moved resources even if they are changed.
v4.5.1
Pull Requests | Issues | v4.5.0...v4.5.1
Bug Fixes
- #117 #896 (#904 #909 #910) Fix parse errors when only Outputs will be changed
- #903 #911 Support parsing errors and warnings without
terraform plan's-no-coloroption - #907
--output: List imported and moved resources - #906 Fix the title by error messages
Fix parse errors when only Outputs will be changed
tfcmt ever couldn't parse the output of terraform plan if only Terraform's Outputs will be changed.
e.g.
$ tfcmt plan -- terraform plan
Changes to Outputs:
+ foo = "foo"
You can apply this plan to save these new output values to the Terraform
state, without changing any real infrastructure.
─────────────────────────────────────────────────────────────────────────────
Note: You didn't use the -out option to save this plan, so Terraform can't
guarantee to take exactly these actions if you run "terraform apply" now.As of tfcmt v4.5.1, tfcmt can parse the output properly.
Support parsing errors and warnings without terraform plan's -no-color option
tfcmt ever couldn't parse errors and warnings without terraform plan's -no-color option because they start with |.
tfcmt plan -- terraform plan
e.g.
╷
│ Warning: "default_branch": [DEPRECATED] Use the github_branch_default resource instead
│
│ with github_repository.tfcmt,
│ on main.tf line 10, in resource "github_repository" "tfcmt":
│ 10: resource "github_repository" "tfcmt" {
│
│ (and one more similar warning elsewhere)
╵As of tfcmt v4.5.1, tfcmt supports parsing warnings and errors even if the -no-color option isn't set.
--output: List imported and moved resources
https://github.com/suzuki-shunsuke/tfcmt/releases/tag/v4.5.0
https://suzuki-shunsuke.github.io/tfcmt/output-file
Fix the title by error messages
tfcmt changes the title by the result of terraform commands
Success
## Plan Result
Failure
## :x: Plan Failed
tfcmt evers checked only the exit code of terraform commands,
but as of tfcmt v4.5.1, tfcmt checks also if terraform commands outputs errors.
This is useful when you outputs terraform commands to a text file and runs tfcmt.
e.g.
terraform plan > plan.txt 2>&1
tfcmt plan -- cat plan.txtContributors
Thank you for your contribution!
v4.5.1-2
Pull Requests | Issues | v4.5.1-1...v4.5.1-2
Changelog
- 10e22fb fix: support paring warnings without
-no-color(#911) - 531d1a6 fix: pass HasError to template (#910)
- f55f012 fix: make the result errors even if outputs will be changed (#909)
- bdc9022 refactor: separate the regular expression for pass and outputs changes (#908)
- fe1a45e fix(localfile): list moved and imported resources (#907)
- 116c118 fix: change the command status by not only exit code but also error messages (#906)
- 51ee496 refactor: rename HasPlanError to HasError (#905)
- 4d9911b fix: check Fail before Pass (#904)
- ff8507a feat: support parsing error without
-no-color(#903) - ab384d0 refactor: remove ExitCode from ParseResult (#902)
- 52c8b07 refactor: stop returning the exit code (#901)
- 9ddad95 refactor: remove an unused default parser (#899)
- 40fb921 chore(aqua): update aqua-checksums.json
- c5efb07 chore(deps): update dependency aquaproj/aqua-registry to v4.47.0
v4.5.1-1
Pull Requests | Issues | v4.5.0...v4.5.1-1
Changelog
- c4a74db fix: parse error when only outputs is changed (#896)
- 7cb1a89 chore(aqua): update aqua-checksums.json
- 3d116b9 chore(deps): update dependency aquaproj/aqua-registry to v4.46.0
- 9555fb6 chore(aqua): update aqua-checksums.json
- f0cdc6c chore(deps): update dependency aquaproj/aqua-registry to v4.45.0
- 6502f19 chore(aqua): update aqua-checksums.json
- 95f2326 chore(deps): update dependency aquaproj/aqua-registry to v4.44.3
- a68d24e chore(aqua): update aqua-checksums.json
- f60cbc9 chore(deps): update dependency aquaproj/aqua-registry to v4.44.2
- 98e34fe chore(deps): update dependency golang/go to v1.21.1
- 635d1cf chore(aqua): update aqua-checksums.json
- 828f626 chore(deps): update dependency reviewdog/reviewdog to v0.15.0
- 033c6a0 chore(go): go mod tidy
- adab827 fix(deps): update module golang.org/x/oauth2 to v0.12.0
- 733de63 chore(aqua): update aqua-checksums.json
- 272bd32 chore(deps): update dependency aquaproj/aqua-registry to v4.44.1
- c8397b7 chore(aqua): update aqua-checksums.json
- 911988b chore(deps): update dependency aquaproj/aqua-registry to v4.44.0
- b21151a chore(aqua): update aqua-checksums.json
- 7738078 chore(deps): update dependency aquaproj/aqua-registry to v4.43.1
v4.5.0
Pull Requests | Issues | v4.4.3...v4.5.0
Features
#880 #881 Add moved resources to the list of changed resources
#882 #884 Add imported resources to the list of changed resources
Add the template variables MovedResources and ImportedResources, which is a list of imported resources.
e.g.
MovedResources:
- Before: null_resource.foo
After: null_resource.bar
ImportedResources:
- github_repository.tfcmtAdd the list of moved resources and imported resources to the built in template updated_resources.
If you use the default template, you don't have to do anything because the moved resources and imported resources are added to the default template.
Others
v4.5.0-1
Pull Requests | Issues | v4.4.3...v4.5.0-1
Changelog
- b474d50 feat: add imported resources to the list of changed resources (#884)
- fff9e9a chore(cmdx): add short command
i(#883) - 0f01617 feat: add moved resources to changed resources (#881)
- 154fa60 chore(aqua): update aqua-checksums.json
- 6c3130c chore(deps): update dependency aquaproj/aqua-registry to v4.43.0
- 6c63b54 chore(aqua): update aqua-checksums.json
- 7d93b8b chore(deps): update dependency aquaproj/aqua-registry to v4.42.0
- 28ed03e chore(aqua): update aqua-checksums.json
- d015f75 chore(deps): update dependency aquaproj/aqua-registry to v4.41.1
- a42a709 chore(aqua): update aqua-checksums.json
- 788f80b chore(deps): update dependency aquaproj/aqua-registry to v4.41.0
- 33f88d7 chore(aqua): update aqua-checksums.json
- 7db89a5 chore(deps): update dependency aquaproj/aqua-registry to v4.40.0
- 70b66e3 chore(aqua): update aqua-checksums.json
- 360c8f0 chore(deps): update dependency aquaproj/aqua-registry to v4.39.0
- 96fb89a chore(aqua): update aqua-checksums.json
- 32e43ff chore(deps): update dependency aquaproj/aqua-registry to v4.38.0
- 469e6db chore(aqua): update aqua-checksums.json
- e95065a chore(deps): update dependency aquaproj/aqua-registry to v4.37.0
- c45a91b chore(deps): update suzuki-shunsuke/go-release-workflow action to v0.4.3
- 7296c0e chore(aqua): update aqua-checksums.json
- e847878 chore(deps): update dependency aquaproj/aqua-registry to v4.36.0
- ce34676 chore(aqua): update aqua-checksums.json
- fb26b7d chore(deps): update dependency goreleaser/goreleaser to v1.20.0
- fe01b36 chore(deps): update dependency aquaproj/aqua-renovate-config to v1.8.0
- 4852977 chore(deps): update dependency aquaproj/aqua-registry to v4.35.0 (#864)
- 6ce9fc1 chore(deps): update dependency aquaproj/aqua-renovate-config:file to v1.8.0
- 7a2c875 chore(aqua): update aqua-checksums.json
- 0a76ffb chore(deps): update dependency aquaproj/aqua-registry to v4.34.0
- 1e9ce13 chore(deps): update dependency golang/go to v1.21.0
- 1d5a52b chore(deps): update actions/setup-go action to v4.1.0
- 06229cf chore(aqua): update aqua-checksums.json
- d047e4f chore(deps): update dependency aquaproj/aqua-registry to v4.33.0
- afb174d chore(go): go mod tidy
- 2793480 fix(deps): update module golang.org/x/oauth2 to v0.11.0
- 4fa374b chore(aqua): update aqua-checksums.json
- dcc7122 chore(deps): update dependency aquaproj/aqua-registry to v4.32.2
- 9ab16e6 chore(aqua): update aqua-checksums.json
- 3811283 chore(deps): update dependency aquaproj/aqua-registry to v4.32.1
- 7967eca chore(deps): update dependency golang/go to v1.20.7
- 3d2a88e chore(aqua): update aqua-checksums.json
- 13604ec chore(deps): update dependency aquaproj/aqua-registry to v4.32.0
v4.4.3
Pull Requests | Issues | v4.4.2...v4.4.3
Others
#850 refactor: Replace suzuki-shunsuke/go-timeout to exec.CommandContext, Cmd.Cancel, and Cmd.WaitDelay
#833 #842 Update Go 1.20.1 to 1.20.6

