pulumi/sdk/go/common/util/rpcutil
Abhinav Gupta 7bddec255d
sdk/go: Prefer contract.Assertf over Assert
Migrates all uses of contract.{Assert, AssertNoError, Require} in sdk/
to the `*f` variants that are required to provide more error context.

Step towards deprecating non-f variants entirely.

For context, `contract.Require` is similar to `contract.Assert`,
except it has a required parameter name as an argument:

    func Require(cond bool, param string)
    func Requiref(cond bool, param string, msg string, args ...any)

It includes the parameter name in the error message by default,
so the `msg` and `args` should only describe the constraint
without naming the parameter.

Refs #12132
2023-02-15 10:22:43 -08:00
..
rpcerror sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
health.go grpc: WithInsecure is deprecated 2023-01-11 12:15:40 -08:00
interceptor.go Introduce PULUMI_DEBUG_GRPC support 2022-11-08 14:01:15 -05:00
pty.go Move InstallDependencies to the language plugin (#9294) 2022-04-03 15:54:59 +01:00
pty_windows.go Move InstallDependencies to the language plugin (#9294) 2022-04-03 15:54:59 +01:00
serve.go Introduce PULUMI_DEBUG_GRPC support 2022-11-08 14:01:15 -05:00
writer.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
writer_test.go all: Drop ioutil 2023-01-06 16:35:14 -08:00