From 9c7f2d742872921411328719377d85cc0dc07022 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 8 Aug 2024 20:26:34 -0400 Subject: [PATCH] chore: update `version.go` - Replaces the deprecated `InitializePluginVersion` with `NewPluginVersion` from `packer-plugin-sdk`, which is the recommended approach in `version/version.go`. - Removed superfluous comments that are already included in the SDK. --- version/version.go | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/version/version.go b/version/version.go index 3ba0bcd0..c742ef1a 100644 --- a/version/version.go +++ b/version/version.go @@ -6,15 +6,8 @@ package version import "github.com/hashicorp/packer-plugin-sdk/version" var ( - // Version is the main version number that is being run at the moment. - Version = "1.3.3" - - // VersionPrerelease is A pre-release marker for the Version. If this is "" - // (empty string) then it means that it is a final release. Otherwise, this - // is a pre-release such as "dev" (in development), "beta", "rc1", etc. + Version = "1.3.3" VersionPrerelease = "dev" - - // PluginVersion is used by the plugin set to allow Packer to recognize - // what version this plugin is. - PluginVersion = version.InitializePluginVersion(Version, VersionPrerelease) + VersionMetadata = "" + PluginVersion = version.NewPluginVersion(Version, VersionPrerelease, VersionMetadata) )