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 authored and lbajolet-hashicorp committed Aug 9, 2024
1 parent 874576e commit 3dc75aa
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
)

0 comments on commit 3dc75aa

Please sign in to comment.