pulumi/sdk/go/pulumi
James Nugent d4180d9f61
Print actionable information on assertion failure (#7344)
This commit moves from simply asserting on the assignability of types to
using `Assertf` to print the types in question. This provides more
information to a user whose code is panicking because of
non-assignability.

Ultimately it would likely be better to surface this via error messages
instead of via panic, but this at least improves the debuggability in
the meantime.
2021-06-21 11:30:08 -06:00
..
config Temporarily disable config secrets warning (#7129) 2021-05-24 16:06:27 -07:00
provider [sdk/go] Support prompt values in `Construct` (#6790) 2021-04-18 09:18:25 -07:00
templates Temporarily disable config secrets warning (#7129) 2021-05-24 16:06:27 -07:00
alias.go [sdk/go] Simplify Apply method options to reduce binary size (#6607) 2021-04-14 19:32:18 +01:00
asset.go [breaking] Changing the version of go.mod in sdk / pkg to be v3 2021-04-14 19:32:18 +01:00
context.go [sdk/go] Warn when a secret config is read as a non-secret (#7080) 2021-05-18 15:02:43 -07:00
generate.go Fix tests for builtins 2021-03-30 22:24:11 -07:00
log.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
mocks.go Refactor Mock newResource and call to accept property bag rather than individual args (#6672) 2021-04-14 19:32:18 +01:00
printf.go
printf_test.go Support remote components in Go (#5558) 2020-10-29 15:13:17 -07:00
provider.go [sdk/go] Specify known when creating outputs for construct (#7343) 2021-06-21 09:51:41 -07:00
provider_linked.go [sdk/go] Support prompt values in `Construct` (#6790) 2021-04-18 09:18:25 -07:00
provider_test.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
resource.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
resource_test.go Fix malformed resource value bug (#6164) 2021-01-21 16:40:27 -07:00
rpc.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
rpc_test.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
run.go [sdk/go] Warn when a secret config is read as a non-secret (#7080) 2021-05-18 15:02:43 -07:00
run_test.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
stack_reference.go [sdk/go] Simplify Apply method options to reduce binary size (#6607) 2021-04-14 19:32:18 +01:00
stack_reference_test.go Refactor Mock newResource and call to accept property bag rather than individual args (#6672) 2021-04-14 19:32:18 +01:00
transformation.go Support transformations in Go (#3978) 2020-03-02 13:59:11 -08:00
types.go Print actionable information on assertion failure (#7344) 2021-06-21 11:30:08 -06:00
types_builtins.go [sdk/go] Simplify Apply method options to reduce binary size (#6607) 2021-04-14 19:32:18 +01:00
types_builtins_test.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00
types_test.go Await outstanding async work in Go. (#6983) 2021-05-14 12:00:21 -07:00