From 00187acb65963d52a9c12a12c7f2536e880be2b4 Mon Sep 17 00:00:00 2001 From: Ryan Johnson Date: Thu, 8 Aug 2024 20:36:10 -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 | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/version/version.go b/version/version.go index 3c03fe05..aa083231 100644 --- a/version/version.go +++ b/version/version.go @@ -8,15 +8,8 @@ import ( ) var ( - // Version is the main version number that is being run at the moment. - Version = "2.1.7" - - // 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. - VersionPrerelease = "" - - // AzurePluginVersion is used by the plugin set to allow Packer to recognize - // what version this plugin is. - AzurePluginVersion = version.InitializePluginVersion(Version, VersionPrerelease) + Version = "2.1.7" + VersionPrerelease = "" + VersionMetadata = "" + AzurePluginVersion = version.NewPluginVersion(Version, VersionPrerelease, VersionMetadata) )