pulumi/pkg
bors[bot] 46ccb5a22c
Merge #12489
12489: Temporary compatability shim for tf mappings r=Frassle a=Frassle

<!--- 
Thanks so much for your contribution! If this is your first time contributing, please ensure that you have read the [CONTRIBUTING](https://github.com/pulumi/pulumi/blob/master/CONTRIBUTING.md) documentation.
-->

# Description

<!--- Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. -->

Currently bridge provider plugins return a mapping for "tf" but not "terraform", the bridge has been updated to reply for both but given it takes time for providers to be updated and published we're adding this compat shim to just try both names.

Also closes off the provider plugins after calling GetMapping to stop a resource leak.
## Checklist

<!--- Please provide details if the checkbox below is to be left unchecked. -->
- [ ] I have added tests that prove my fix is effective or that my feature works
<!--- 
User-facing changes require a CHANGELOG entry.
-->
- [ ] 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: Fraser Waters <fraser@pulumi.com>
2023-03-24 12:14:34 +00:00
..
authhelpers make linter happy 2023-02-08 10:30:10 -08:00
backend filestate: Make currentProject an atomic.Pointer 2023-03-22 16:33:57 -07:00
cmd/pulumi [macOS] cli: Suggest brew update in upgrade message 2023-03-23 14:25:24 -07:00
codegen Merge #12489 2023-03-24 12:14:34 +00:00
engine all: Drop //nolint:goconst 2023-03-09 11:15:21 -08:00
graph all: Assert => Assertf 2023-03-03 14:37:43 -08:00
importer all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
operations all: Reformat with gofumpt 2023-03-03 09:00:24 -08:00
resource Merge #12461 2023-03-21 17:46:13 +00:00
secrets all: Assert => Assertf 2023-03-03 14:37:43 -08:00
testing/integration chore(all): Log to iotest.LogWriter from tests 2023-03-07 11:27:47 -08:00
util all: Assert => Assertf 2023-03-03 14:37:43 -08:00
version duplicate version to ensure linking is properly handled 2020-03-19 12:49:34 -07:00
README.md export codegen tests for internal use (#8928) 2022-02-07 12:10:04 +01:00
go.mod chore: post-release go.mod updates 2023-03-23 01:24:42 +00:00
go.sum go mod tidy 2023-03-16 12:14:49 +01:00

README.md

pulumi/pkg

While pulumi/sdk maintains strict backwards compatibility guarantees, code under pkg/ is handled more informally: while breaking changes are still discouraged they may happen when they make sense.