opentofu/internal/command/jsonformat/differ
Martin Atkins a800d250e5
Some checks are pending
build / Build for freebsd_386 (push) Waiting to run
build / Build for linux_386 (push) Waiting to run
build / Build for openbsd_386 (push) Waiting to run
build / Build for windows_386 (push) Waiting to run
build / Build for freebsd_amd64 (push) Waiting to run
build / Build for linux_amd64 (push) Waiting to run
build / Build for openbsd_amd64 (push) Waiting to run
build / Build for solaris_amd64 (push) Waiting to run
build / Build for windows_amd64 (push) Waiting to run
build / Build for freebsd_arm (push) Waiting to run
build / Build for linux_arm (push) Waiting to run
build / Build for linux_arm64 (push) Waiting to run
build / Build for darwin_amd64 (push) Waiting to run
build / Build for darwin_arm64 (push) Waiting to run
build / End-to-end Tests for linux_386 (push) Waiting to run
build / End-to-end Tests for windows_386 (push) Waiting to run
build / End-to-end Tests for darwin_amd64 (push) Waiting to run
build / End-to-end Tests for linux_amd64 (push) Waiting to run
build / End-to-end Tests for windows_amd64 (push) Waiting to run
Quick Checks / List files changed for pull request (push) Waiting to run
Quick Checks / Unit tests for linux_386 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for windows_amd64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm (push) Blocked by required conditions
Quick Checks / Unit tests for darwin_arm64 (push) Blocked by required conditions
Quick Checks / Unit tests for linux_arm64 (push) Blocked by required conditions
Quick Checks / Race Tests (push) Blocked by required conditions
Quick Checks / End-to-end Tests (push) Blocked by required conditions
Quick Checks / Code Consistency Checks (push) Blocked by required conditions
Quick Checks / License Checks (push) Waiting to run
Website checks / List files changed for pull request (push) Waiting to run
Website checks / Build (push) Blocked by required conditions
Website checks / Test Installation Instructions (push) Blocked by required conditions
command: "go fix" on various files we've changed recently anyway
We don't typically just broadly run automatic rewriting tools like "go fix"
across our codebase because that tends to cause annoying and unnecessary
merge conflicts when we're backporting to earlier release branches.

But all of the files in this commit were changed in some non-trivial way
already during the OpenTofu v1.11 development period anyway, and so the
likelyhood we'd be able to successfully backport from them is reduced and
therefore this seems like a good opportunity to do some focused
modernization using "go fix".

My rules for what to include or not are admittedly quite "vibes-based", but
the general idea was:

 - Focusing on files under the "command" directory only, because that's
   already been an area of intentional refactoring during this development
   period.
 - If the existing diff in a file is already significantly larger than
   the changes the fixer proposed to make, or if the fixer is proposing
   to change a line that was already changed in this development period.
 - More willing to include "_test.go" files than non-test files, even if
   they hadn't changed as much already, just because backports from test
   files for bug fixes tend to be entirely new test cases more than they
   are modifications to existing test cases, and so the risk of conflicts
   is lower there.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2026-03-17 15:25:30 -07:00
..
attribute.go Plan now renders write-only attributes that require replace (#3296) 2025-09-22 17:15:20 +03:00
block.go Render write-only attributes after rendered all of the other attributes (#3667) 2026-01-16 09:46:54 +02:00
differ.go Ephemeral write only attributes (#3171) 2025-09-10 07:45:23 -04:00
differ_test.go command: "go fix" on various files we've changed recently anyway 2026-03-17 15:25:30 -07:00
list.go Diffing lists containing multiline strings (#3030) 2025-07-18 20:44:05 +04:00
map.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
object.go Ephemeral write only attributes (#3171) 2025-09-10 07:45:23 -04:00
output.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
primitive.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
sensitive.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
set.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
tuple.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
types.go Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
unknown.go Fix all unknown block not outputted (#1948) 2024-09-17 09:49:33 -04:00