Skip to content

Commit 3022ac8

Browse files
tenthirtyamlbajolet-hashicorp
authored andcommitted
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.
1 parent bfe54ea commit 3022ac8

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

version/version.go

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,8 @@ package version
66
import "github.com/hashicorp/packer-plugin-sdk/version"
77

88
var (
9-
// Version is the main version number that is being run at the moment.
10-
Version = "1.0.11"
11-
12-
// VersionPrerelease is A pre-release marker for the Version. If this is ""
13-
// (empty string) then it means that it is a final release. Otherwise, this
14-
// is a pre-release such as "dev" (in development), "beta", "rc1", etc.
9+
Version = "1.0.11"
1510
VersionPrerelease = "dev"
16-
17-
// PluginVersion is used by the plugin set to allow Packer to recognize
18-
// what version this plugin is.
19-
PluginVersion = version.InitializePluginVersion(Version, VersionPrerelease)
11+
VersionMetadata = ""
12+
PluginVersion = version.NewPluginVersion(Version, VersionPrerelease, VersionMetadata)
2013
)

0 commit comments

Comments
 (0)