From afc931c2cab6385390ac593cf6a40937ed6edf2d Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Fri, 3 Jan 2025 11:07:00 -0800 Subject: [PATCH 1/2] Add documentation for the source of the ldflag-linked version of the dynamic package. --- dynamic/version/version.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dynamic/version/version.go b/dynamic/version/version.go index 2d74f0cbb..e6d4e40e1 100644 --- a/dynamic/version/version.go +++ b/dynamic/version/version.go @@ -15,6 +15,11 @@ package version // version is initialized by the Go linker to contain the semver of this build. + +// This is the same mechanism that Pulumi uses to embed versions in all of our binaries. +// When updating the module version of this library, ensure to update the correct module path in +// the Goreleaser for https://github.com/pulumi/pulumi-terraform-provider. +// See also https://github.com/pulumi/pulumi-terraform-provider/pull/56. var version string // The Version of the provider. From 9731b536945088c96db20135b9f2a996a35040fb Mon Sep 17 00:00:00 2001 From: guineveresaenger Date: Tue, 7 Jan 2025 15:21:15 -0800 Subject: [PATCH 2/2] attach comment --- dynamic/version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamic/version/version.go b/dynamic/version/version.go index e6d4e40e1..d9c89eeeb 100644 --- a/dynamic/version/version.go +++ b/dynamic/version/version.go @@ -15,7 +15,7 @@ package version // version is initialized by the Go linker to contain the semver of this build. - +// // This is the same mechanism that Pulumi uses to embed versions in all of our binaries. // When updating the module version of this library, ensure to update the correct module path in // the Goreleaser for https://github.com/pulumi/pulumi-terraform-provider.