pulumi/sdk/go/pulumi
Julien d5cf13b6cd
Permit output arguments in plain invokes for backwards compatibility (#18304)
Plain invokes happen to serialize arguments, which allows passing in
output types. With https://github.com/pulumi/pulumi/pull/18204 we
started checking if the resource dependencies of the arguments (and from
`dependsOn`) are known, and returned unknown if not. However this broke
backwards compatibility for plain invokes in the TypeScript and Python
SDKs.

This PR ensures that we only check the dependencies if we are using
output form invokes. In Python and TypesScript, arguments of output type
decay to promises/tasks, without dependency information, when passed to
plain invokes.
2025-01-21 14:27:59 +00:00
..
config Clean up uses of .Error() (#14965) 2023-12-20 15:54:06 +00:00
errors allow better grpc error messages from Go component providers (#17464) 2024-10-10 07:13:31 +00:00
generate Add StringMapMapMap to Go SDK (#17417) 2024-09-29 10:05:30 +00:00
internals Use EqualError/ErrorContains instead of Error (#14737) 2023-12-08 06:40:14 +00:00
provider Prepare golangci-lint upgrade (#17065) 2024-08-28 07:57:38 +00:00
alias.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
alias_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
asset.go [sdk/{go,dotnet] Unmarshal invalid assets. (#7579) 2021-07-21 13:40:36 -07:00
callback.go fix potential concurrent map write in Go transforms (#16444) 2024-06-24 09:35:52 +00:00
context.go Remove urnSet (#18137) 2025-01-16 09:53:16 +00:00
context_test.go Permit output arguments in plain invokes for backwards compatibility (#18304) 2025-01-21 14:27:59 +00:00
internals.go sdk/go: Move Output implementation to internal 2023-07-25 18:13:35 -07:00
log.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
mocks.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
printf.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
printf_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
provider.go Remove urnSet (#18137) 2025-01-16 09:53:16 +00:00
provider_linked.go all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
provider_test.go Remove urnSet (#18137) 2025-01-16 09:53:16 +00:00
resource.go Avoid calling invokes with dependencies on unknown resources (#18133) 2025-01-06 08:46:33 +00:00
resource_set.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
resource_test.go Avoid calling invokes with dependencies on unknown resources (#18133) 2025-01-06 08:46:33 +00:00
rpc.go Remove urnSet (#18137) 2025-01-16 09:53:16 +00:00
rpc_test.go Inherit `protect` from `parent`s in the Go SDK (#17936) 2024-12-05 17:14:46 +00:00
run.go Use int32 in Go interfaces that map to protobufs using int32 (#17068) 2024-08-28 13:45:17 +00:00
run_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
stack_reference.go Improve error messages for wrong stack output types (#18245) 2025-01-15 11:47:43 +00:00
stack_reference_test.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
transform.go add Go support for invoke transforms (#16617) 2024-07-15 08:28:11 +00:00
transformation.go Enable goheader rule and add missing license headers (#15473) 2024-09-09 12:05:45 +00:00
type_conversions.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
types.go [sdk/program-gen] Implementing DeferredOutput for Go SDK and program-gen (#17885) 2025-01-04 18:47:30 +00:00
types_builtins.go Add StringMapMapMap to Go SDK (#17417) 2024-09-29 10:05:30 +00:00
types_builtins_test.go Add StringMapMapMap to Go SDK (#17417) 2024-09-29 10:05:30 +00:00
types_contravariance_test.go Use slice.Prealloc instead of make([]T, 0, ...) 2023-06-29 11:27:50 +01:00
types_test.go [sdk/program-gen] Implementing DeferredOutput for Go SDK and program-gen (#17885) 2025-01-04 18:47:30 +00:00