opentofu/internal
Martin Atkins 4f99815163 addrs: Target is a fmt.Stringer
We have some test code that includes *addrs.Target values in fmt calls with
the %s and %q verbs, but that type was not actually a fmt.Stringer before.

Go 1.26 is introducing some new checks that cause those uses to cause
failures when building those tests. We could potentially change the tests
to produce the string representation in a different way, but we typically
expect our address types to be "stringable" in this way, so instead we'll
just make Target be a fmt.Stringer, delegating to the String method of
the underlying addrs.Targetable implementation. The addrs.Targetable
interface requires a String method, so all implementations are guaranteed
to support this.

Note that we're not actually using Go 1.26 yet at the time of this commit,
but this is an early fix to make the upgrade easier later. I verified this
using go1.26rc1.

Signed-off-by: Martin Atkins <mart@degeneration.co.uk>
2025-12-18 10:59:03 -08:00
..
addrs addrs: Target is a fmt.Stringer 2025-12-18 10:59:03 -08:00
backend Small tweaks on the guidelines and the scripts for testing the azure backend (#3603) 2025-12-18 08:58:33 +02:00
builtin provisioner/local-exec: Make "stop" test actually useful on Windows 2025-10-10 08:48:30 -07:00
checks go.mod: Use the new "tool" directive 2025-10-10 07:06:56 -03:00
cloud go.mod: Update "go-tfe" library to latest release (#3413) 2025-10-22 11:33:35 -07:00
collections collections+addrs: Build sets from iter.Seq[T] 2025-10-27 10:15:41 -07:00
command Remove global schema cache and clean up tofu schema/contextPlugins (#3589) 2025-12-17 09:49:39 -05:00
communicator various: Remove legacy "+build" comments 2025-11-01 08:00:01 -03:00
configs Fix nil pointer dereference in config filtering (#3553) 2025-12-09 16:57:52 +04:00
copy Use parallel errgroup to increase file copy speed (#3214) 2025-09-02 08:32:02 -04:00
dag refactor: add err checks (#2896) 2025-06-17 20:18:53 +04:00
depsfile tracing: Centralize our OpenTelemetry package imports 2025-10-30 13:27:10 -07:00
didyoumean Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
e2e Cleanup github workflows (#2903) 2025-06-11 07:15:07 -04:00
encryption chore(keyprovider/gcp_kms): add logs for encryption and decryption keys (#3518) 2025-11-24 09:44:18 -03:00
engine engine/planning: Minimal building of execution graph 2025-12-12 07:03:52 -08:00
experiments Another batch of minor typos (#1953) 2024-09-09 07:51:39 -04:00
flock create automated tests for the internal/flock package (#3366) 2025-12-02 12:07:25 -03:00
genconfig Address review comments 2025-09-10 07:45:23 -04:00
getmodules traceattrs: Functions for the commonly-used OCI-related attributes 2025-11-03 11:41:50 -08:00
getproviders Parallelize provider installation (#2729) 2025-12-01 11:55:53 -05:00
grpcwrap Use the latest protobuf tools and libraries throughout 2025-10-08 07:43:40 -07:00
helper/slowmessage Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
httpclient tracing: Centralize our OpenTelemetry package imports 2025-10-30 13:27:10 -07:00
initwd registry: Remove legacy "regsrc" package, use regaddr instead 2025-12-08 07:47:48 -08:00
instances Module expander for enabled field 2025-10-03 13:17:47 -03:00
ipaddr Implement the first part of RFC 20250303-linter-policy (#2577) 2025-03-10 13:16:27 -04:00
lang configgraph: Only ask ResourceInstanceGlue once for each value 2025-12-12 07:03:52 -08:00
legacy Replace github.com/go-test/deep with go-cmp 2025-10-13 08:17:40 -07:00
logging Another batch of minor typos (#1953) 2024-09-09 07:51:39 -04:00
modsdir initwd Windows tests fixes (#1723) 2024-06-18 10:49:30 -04:00
moduletest go.mod: Upgrade various golang.org/x/* dependencies 2025-10-10 08:23:54 -07:00
plans plans: Minimal handling of new-style execution graphs 2025-12-12 07:03:52 -08:00
plugin Remove global schema cache and clean up tofu schema/contextPlugins (#3589) 2025-12-17 09:49:39 -05:00
plugin6 Remove global schema cache and clean up tofu schema/contextPlugins (#3589) 2025-12-17 09:49:39 -05:00
provider-simple Ephemeral todos handling (#3177) 2025-09-10 07:45:23 -04:00
provider-simple-v6 Ephemeral todos handling (#3177) 2025-09-10 07:45:23 -04:00
providercache Parallelize provider installation (#2729) 2025-12-01 11:55:53 -05:00
providers Remove global schema cache and clean up tofu schema/contextPlugins (#3589) 2025-12-17 09:49:39 -05:00
provisioner-local-exec/main Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
provisioners Update copyright notice (#1232) 2024-02-08 09:48:59 +00:00
refactoring Implicit moves for modules (#3327) 2025-10-15 09:10:15 -03:00
registry registry: Remove legacy "regsrc" package, use regaddr instead 2025-12-08 07:47:48 -08:00
repl Ephemeral todos handling (#3177) 2025-09-10 07:45:23 -04:00
replacefile Fix linting on Windows (#3457) 2025-12-02 07:11:14 -03:00
states states: SyncState.ResourceInstanceObjectFull tolerate missing resource 2025-12-12 07:03:52 -08:00
terminal Fix linting on Windows (#3457) 2025-12-02 07:11:14 -03:00
tfdiags Replace github.com/go-test/deep with go-cmp 2025-10-13 08:17:40 -07:00
tfplugin5 Use the latest protobuf tools and libraries throughout 2025-10-08 07:43:40 -07:00
tfplugin6 Use the latest protobuf tools and libraries throughout 2025-10-08 07:43:40 -07:00
tofu Remove global schema cache and clean up tofu schema/contextPlugins (#3589) 2025-12-17 09:49:39 -05:00
tofumigrate Adopt OpenTofu's own "svchost" module 2025-06-12 09:37:59 -07:00
tracing traceattrs: Functions for the commonly-used OCI-related attributes 2025-11-03 11:41:50 -08:00