terraform/internal
Kristin Laemmert 7b7273e3aa
Add support for plugin protocol v6 (#27826)
* Add support for plugin protocol v6

This PR turns on support for plugin protocol v6. A provider can
advertise itself as supporting protocol version 6 and terraform will
use the correct client.

Todo:

The "unmanaged" providers functionality does not support protocol
version, so at the moment terraform will continue to assume that
"unmanaged" providers are on protocol v5. This will require some
upstream work on go-plugin (I believe).

I would like to convert the builtin providers to use protocol v6 in a
future PR; however it is not necessary until we remove protocol v6.

* add e2e test for using both plugin protocol versions

- copied grpcwrap and made a version that returns protocol v6 provider
- copied the test provider, provider-simple, and made a version that's
  using protocol v6 with the above fun
- added an e2etest
2021-02-22 10:22:45 -05:00
..
copy deprecate helper/copy 2020-10-08 08:42:16 -04:00
depsfile fix file mode on lock file (#27205) 2020-12-18 11:51:59 -05:00
didyoumean didyoumean: move from "helper" to "internal" 2020-10-02 13:35:07 -07:00
earlyconfig internal/earlyconfig: staticcheck 2020-12-02 13:59:19 -05:00
getproviders Correct the spelling of heirarchy/hierarchy throughout 2021-02-05 15:07:04 +00:00
grpcwrap Add support for plugin protocol v6 (#27826) 2021-02-22 10:22:45 -05:00
helper Grammar nit: "setup" as a verb should be spelled "set up" 2021-01-26 20:39:11 +01:00
initwd use a single log writer 2020-10-19 14:29:54 -04:00
legacy Merge pull request #27692 from alexwlchan/abolish-the-heirarchy 2021-02-18 16:34:28 -05:00
logging Grammar nit: "setup" as a verb should be spelled "set up" 2021-01-26 20:39:11 +01:00
modsdir internal/modsdir: Fix Dropped Error (#24600) 2020-06-04 10:26:26 -04:00
provider-simple Mildwonkey/providers interface renaming (#27805) 2021-02-18 10:13:43 -05:00
provider-simple-v6 Add support for plugin protocol v6 (#27826) 2021-02-22 10:22:45 -05:00
provider-terraform/main add grpcwrap.Provisioner 2020-12-02 12:45:00 -05:00
providercache Emit ProviderAlreadyInstalled when provider installed 2021-02-09 11:08:49 -05:00
provisioner-local-exec/main add grpcwrap.Provisioner 2020-12-02 12:45:00 -05:00
replacefile replacefile: don't create the temporary file in TMPDIR 2020-10-20 16:29:59 -07:00
terminal terminal: Helpers for doing fmt-ish operations on the streams 2021-02-12 11:24:13 -08:00
tfplugin5 regenerate plugin proto with correct tooling 2020-12-01 14:06:49 -05:00
tfplugin6 plugin-protocol v6 2021-02-05 13:19:55 -05:00
typeexpr internal/typeexpr: staticcheck 2020-12-02 13:59:19 -05:00