Skip to content

Commit 7941978

Browse files
committed
add default version
1 parent d56632c commit 7941978

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

go.mod

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ module github.com/hashicorp/packer-plugin-sdk
33
require (
44
github.com/aws/aws-sdk-go v1.36.5
55
github.com/dylanmei/winrmtest v0.0.0-20170819153634-c2fbb09e6c08
6-
github.com/fatih/camelcase v1.0.0
7-
github.com/fatih/structtag v1.0.0
86
github.com/gofrs/flock v0.7.3
97
github.com/google/go-cmp v0.5.2
108
github.com/google/shlex v0.0.0-20150127133951-6f45313302b9
@@ -35,7 +33,6 @@ require (
3533
golang.org/x/mobile v0.0.0-20201208152944-da85bec010a2
3634
golang.org/x/net v0.0.0-20201209123823-ac852fbbde11
3735
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a
38-
golang.org/x/tools v0.0.0-20201111133315-69daaf961d65
3936
)
4037

4138
go 1.14

go.sum

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -384,8 +384,6 @@ github.com/hashicorp/packer v1.6.7-0.20210125170305-539638b0f951 h1:p4nxOBaxLlMA
384384
github.com/hashicorp/packer v1.6.7-0.20210125170305-539638b0f951/go.mod h1:Z3eunaxVQ3XgQ+rW7TEH0T/PRQzCUSyCBUTkm/VL7io=
385385
github.com/hashicorp/packer v1.6.7-0.20210126105722-aef4ced967ec h1:E3JlWgvQ/PzFx0X5sihNdx9XNhW08GjAbmVqLuHQ51g=
386386
github.com/hashicorp/packer v1.6.7-0.20210126105722-aef4ced967ec/go.mod h1:2+Vo/c/fA+TD9yFc/h9jQMFm4yG+IymQIr0OdJJOPiE=
387-
github.com/hashicorp/packer v1.6.7-0.20210205095714-ef4afafde9e9 h1:aN1sliuyaMT4uufsacaaKWmf4DomqBEz+DzYGb6jILw=
388-
github.com/hashicorp/packer v1.6.7-0.20210205095714-ef4afafde9e9/go.mod h1:MSh0q+aJsRJmBhZtl0SfsOSf0FHPjEiEKgN1guZc0dw=
389387
github.com/hashicorp/packer v1.6.7-0.20210208125835-f616955ebcb6 h1:sNvdk3PbCgjWavrz3LXGQKQK7opEbDc9YGxZW/PbT5o=
390388
github.com/hashicorp/packer v1.6.7-0.20210208125835-f616955ebcb6/go.mod h1:7f5ZpTTRG53rQ58BcTADuTnpiBcB3wapuxl4sF2sGMM=
391389
github.com/hashicorp/packer-plugin-sdk v0.0.6/go.mod h1:Nvh28f+Jmpp2rcaN79bULTouNkGNDRfHckhHKTAXtyU=

version/version.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ var SDKVersion = InitializePluginVersion(Version, VersionPrerelease)
3131
// versioning and to make sure that plugins which aren't following proper
3232
// semantic versioning crash immediately rather than later.
3333
func InitializePluginVersion(vers, versionPrerelease string) *PluginVersion {
34+
if vers == "" {
35+
// Defaults to "0.0.0". Useful when binary is created for development purpose.
36+
vers = "0.0.0"
37+
}
3438
pv := PluginVersion{
3539
version: vers,
3640
versionPrerelease: versionPrerelease,

0 commit comments

Comments
 (0)