pulumi/sdk/go/pulumi
bors[bot] 538fb3581d
Merge #12001 #12025
12001: Support clones from Azure DevOps r=RobbieMcKinstry a=squaremo

In general, go-git can't clone from Azure DevOps, because the latter requires the capabilities multi_ack and multi_ack_detailed, which aren't implemented. However, there's now a workaround, which boils down to this: pretend, for the initial clone, that those capabilities _are_ supported, and expect them not to be used.

(See https://github.com/go-git/go-git/pull/613 for more on this workaround.)

I tried this with a personal Azure DevOps account; an automated test would need either a reliably long-lived Azure DevOps repo, or a test server that can mimic Azure DevOps' particular capabilities. I'm open to suggestions!

12025: [sdks/go] Delegate alias computation to the engine r=abhinav a=Zaid-Ajaj

Fixes #11066
Addresses #11697 

Credit to `@abhinav` for making aliases unit-testable by intercepting `RegisterResource` calls. 

> I did change the test slightly so that it either checks for `AliasURNs: []string` or `Aliases: []*pulumirpc.Alias` because I've made it such that one of them is `nil` depending on `supportsAliasSpecs`

## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [x] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [x] I have run `make changelog` and committed the `changelog/pending/<file>` documenting my change
<!--
If the change(s) in this PR is a modification of an existing call to the Pulumi Service,
then the service should honor older versions of the CLI where this change would not exist.
You must then bump the API version in /pkg/backend/httpstate/client/api.go, as well as add
it to the service.
-->
- [ ] Yes, there are changes in this PR that warrants bumping the Pulumi Service API version
  <!-- `@Pulumi` employees: If yes, you must submit corresponding changes in the service repo. -->


Co-authored-by: Michael Bridgen <mbridgen@pulumi.com>
Co-authored-by: Zaid Ajaj <zaid.naom@gmail.com>
2023-02-04 04:42:00 +00:00
..
config chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
generate sdk/go/generate: Replace incorrect TrimRight with TrimSuffix 2023-01-13 10:47:17 -08:00
internals sdk/internal: pulumi.NewOutput => ctx.NewOutput 2023-01-13 13:31:28 -08:00
provider Add tests that return failures from Call (#8424) 2021-11-16 08:58:46 -08:00
alias.go Revert "[go/sdk] Delegate alias computation to the engine" 2023-01-26 19:53:26 +01: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
context.go Merge #12001 #12025 2023-02-04 04:42:00 +00:00
context_test.go Delegate alias computation to the engine 2023-01-31 13:22:36 +01:00
internals.go Update sdk/go/pulumi/internals.go 2022-10-05 11:07:35 -07:00
log.go chore: Update doc comments, coding style, fix lint 2022-10-13 13:50:49 -07:00
mocks.go Clean up use of pkg/errors in sdk/go/pulumi 2023-01-04 12:41:03 +00:00
printf.go Redesign the Go SDK resource/input/output system. (#3506) 2020-01-18 10:08:37 -05:00
printf_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00
provider.go sdk/go: Don't store DependsOn in a lossy form 2023-02-01 17:28:45 -08:00
provider_linked.go Add tests that return failures from Call (#8424) 2021-11-16 08:58:46 -08:00
provider_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
resource.go sdk/go/dependencySet: Add URNs to existing set 2023-02-01 17:32:46 -08:00
resource_set.go unused: Remove unused functions and types 2023-01-12 09:55:34 -08:00
resource_test.go sdk/go/dependencySet: Add URNs to existing set 2023-02-01 17:32:46 -08:00
rpc.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
rpc_test.go Revert "[go/sdk] Delegate alias computation to the engine" 2023-01-26 19:53:26 +01:00
run.go sdk/go: Fix TestDependsOnInputs data race 2023-01-18 13:08:56 -08:00
run_test.go sdk/go: Fix TestDependsOnInputs data race 2023-01-18 13:08:56 -08:00
stack_reference.go Improve error messages for StackReference Get*Output (#10477) 2022-08-24 16:54:37 -07:00
stack_reference_test.go sdk/TestStackReference: Fix race in setting dry run 2023-01-18 11:13:01 -08:00
transformation.go Support transformations in Go (#3978) 2020-03-02 13:59:11 -08:00
type_conversions.go [codegen/go] Improve optional params in invoke 2022-02-01 11:44:40 -08:00
types.go ApplyT: Coerce new type wrappers 2023-01-19 12:50:50 -08:00
types_builtins.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
types_builtins_test.go sdk/go: Remove 'nolint' directives from package docs 2023-01-06 09:06:47 -08:00
types_contravariance_test.go sdk/go: Implement array contravariance in As*ArrayOutput types 2022-10-10 21:04:34 -07:00
types_test.go ApplyT: Coerce new type wrappers 2023-01-19 12:50:50 -08:00
urnset.go [sdk/go] Unmarshal output values in component provider (#7975) 2021-09-17 19:46:06 -07:00
workgroup.go Fixing WaitGroup related panics in the Go SDK (#7661) 2021-07-29 12:39:28 -04:00
workgroup_test.go ci: radical idea - what if slow tests & no stdout makes GH consider runner dead? 2022-03-06 14:52:13 -08:00