pulumi/sdk/go/common/resource/config
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
..
crypt.go sdk/go: Prefer contract.Assertf over Assert 2023-02-15 10:22:43 -08:00
key.go Cleaning up a few pkg/errors uses 2022-11-02 14:20:44 +00:00
key_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
map.go sdk/go/common/resource/config cleanup 2023-02-02 16:09:04 +00:00
map_test.go Allow `pulumi config cp` for objects. (#10147) 2022-07-14 18:09:33 -07:00
value.go sdk/go/common/resource/config cleanup 2023-02-02 16:09:04 +00:00
value_test.go Fix orphan bulk decrypt traces (#10037) 2022-07-18 09:36:31 -04:00