File tree Expand file tree Collapse file tree 3 files changed +19
-29
lines changed Expand file tree Collapse file tree 3 files changed +19
-29
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -5,32 +5,18 @@ import (
5
5
"os"
6
6
7
7
"github.com/hashicorp/packer-plugin-sdk/plugin"
8
- "github.com/hashicorp/packer-plugin-sdk/version"
9
8
10
9
proxmoxclone "github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/clone"
11
10
proxmoxiso "github.com/hashicorp/packer-plugin-proxmox/builder/proxmox/iso"
12
- )
13
-
14
- var (
15
- // Version is the main version number that is being run at the moment.
16
- Version = "1.0.1"
17
-
18
- // VersionPrerelease is A pre-release marker for the Version. If this is ""
19
- // (empty string) then it means that it is a final release. Otherwise, this
20
- // is a pre-release such as "dev" (in development), "beta", "rc1", etc.
21
- VersionPrerelease = ""
22
-
23
- // PluginVersion is used by the plugin set to allow Packer to recognize
24
- // what version this plugin is.
25
- PluginVersion = version .InitializePluginVersion (Version , VersionPrerelease )
11
+ "github.com/hashicorp/packer-plugin-proxmox/version"
26
12
)
27
13
28
14
func main () {
29
15
pps := plugin .NewSet ()
30
16
pps .RegisterBuilder (plugin .DEFAULT_NAME , new (proxmoxiso.Builder ))
31
17
pps .RegisterBuilder ("proxmox-iso" , new (proxmoxiso.Builder ))
32
18
pps .RegisterBuilder ("proxmox-clone" , new (proxmoxclone.Builder ))
33
- pps .SetVersion (PluginVersion )
19
+ pps .SetVersion (version . PluginVersion )
34
20
err := pps .Run ()
35
21
if err != nil {
36
22
fmt .Fprintln (os .Stderr , err .Error ())
Original file line number Diff line number Diff line change
1
+ package version
2
+
3
+ import "github.com/hashicorp/packer-plugin-sdk/version"
4
+
5
+ var (
6
+ // Version is the main version number that is being run at the moment.
7
+ Version = "1.0.1"
8
+
9
+ // VersionPrerelease is A pre-release marker for the Version. If this is ""
10
+ // (empty string) then it means that it is a final release. Otherwise, this
11
+ // is a pre-release such as "dev" (in development), "beta", "rc1", etc.
12
+ VersionPrerelease = "dev"
13
+
14
+ // PluginVersion is used by the plugin set to allow Packer to recognize
15
+ // what version this plugin is.
16
+ PluginVersion = version .InitializePluginVersion (Version , VersionPrerelease )
17
+ )
You can’t perform that action at this time.
0 commit comments