terraform/internal/plans
Martin Atkins ce96d82de0 build: Centralize our protobuf compilation steps
We have a few different .proto files in this repository that all need to
get recompiled into .pb.go files each time we change them, but we were
previously handling that with some scripts that just assumed that protoc
and the relevant plugins were already installed on the system somewhere,
at the right versions.

In practice we've been constantly flopping between different versions of
these tools due to folks having different versions installed in their
development environments. In particular, the state of the .pb.go files
in the prior commit wasn't reproducible by any single version of the tools
because they've all slightly diverged from one another.

In the interests of being more consistent here and avoiding accidental
inconsistencies, we'll now centralize the protocol buffer compile steps
all into a single tool that knows how to fetch and install the expected
versions of the various tools we need and then run those tools with the
right options to get a stable result.

If we want to upgrade to either a newer protoc or a newer protoc-gen-go
in future then we'll do that in a central location and update all of the
.pb.go files at the same time, so that we're always consistently tracking
the same version of protocol buffers everywhere.

While doing this I attempted to keep as close as possible to the toolchain
we'd most recently used, but since they were not consistent with each
other they've now all changed which version numbers they record at minimum,
and the planproto stub in particular now also has a slightly different
descriptor serialization but is otherwise offering the same API.
2021-08-20 16:18:48 -07:00
..
internal/planproto build: Centralize our protobuf compilation steps 2021-08-20 16:18:48 -07:00
objchange handle null NestingSingle values 2021-08-18 13:52:18 -04:00
planfile update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
action.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
action_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
changes.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_src.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_state.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_sync.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
changes_test.go update to use typed sensitive marks 2021-06-25 12:49:07 -04:00
doc.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
dynamic_value.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
mode_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
plan.go Move states/ to internal/states/ 2021-05-17 14:09:07 -07:00
plan_test.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00
resourceinstancechangeactionreason_string.go Move plans/ to internal/plans/ 2021-05-17 14:09:07 -07:00