Skip to content

Commit

Permalink
chore: update version.go
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
tenthirtyam committed Aug 23, 2024
1 parent 432c097 commit 00187ac
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

0 comments on commit 00187ac

Please sign in to comment.