Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -384,8 +384,6 @@ github.com/hashicorp/packer v1.6.7-0.20210125170305-539638b0f951 h1:p4nxOBaxLlMA
github.com/hashicorp/packer v1.6.7-0.20210125170305-539638b0f951/go.mod h1:Z3eunaxVQ3XgQ+rW7TEH0T/PRQzCUSyCBUTkm/VL7io=
github.com/hashicorp/packer v1.6.7-0.20210126105722-aef4ced967ec h1:E3JlWgvQ/PzFx0X5sihNdx9XNhW08GjAbmVqLuHQ51g=
github.com/hashicorp/packer v1.6.7-0.20210126105722-aef4ced967ec/go.mod h1:2+Vo/c/fA+TD9yFc/h9jQMFm4yG+IymQIr0OdJJOPiE=
github.com/hashicorp/packer v1.6.7-0.20210205095714-ef4afafde9e9 h1:aN1sliuyaMT4uufsacaaKWmf4DomqBEz+DzYGb6jILw=
github.com/hashicorp/packer v1.6.7-0.20210205095714-ef4afafde9e9/go.mod h1:MSh0q+aJsRJmBhZtl0SfsOSf0FHPjEiEKgN1guZc0dw=
github.com/hashicorp/packer v1.6.7-0.20210208125835-f616955ebcb6 h1:sNvdk3PbCgjWavrz3LXGQKQK7opEbDc9YGxZW/PbT5o=
github.com/hashicorp/packer v1.6.7-0.20210208125835-f616955ebcb6/go.mod h1:7f5ZpTTRG53rQ58BcTADuTnpiBcB3wapuxl4sF2sGMM=
github.com/hashicorp/packer-plugin-sdk v0.0.6/go.mod h1:Nvh28f+Jmpp2rcaN79bULTouNkGNDRfHckhHKTAXtyU=
Expand Down
4 changes: 4 additions & 0 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ var SDKVersion = InitializePluginVersion(Version, VersionPrerelease)
// versioning and to make sure that plugins which aren't following proper
// semantic versioning crash immediately rather than later.
func InitializePluginVersion(vers, versionPrerelease string) *PluginVersion {
if vers == "" {
// Defaults to "0.0.0". Useful when binary is created for development purpose.
vers = "0.0.0"
}
pv := PluginVersion{
version: vers,
versionPrerelease: versionPrerelease,
Expand Down