Compare commits
2 Commits
main
...
get-packer
Author | SHA1 | Date | |
---|---|---|---|
|
61fdd0d0d3 | ||
|
bcd5c09e65 |
@ -24,7 +24,7 @@ builds:
|
|||||||
flags:
|
flags:
|
||||||
- -trimpath #removes all file system paths from the compiled executable
|
- -trimpath #removes all file system paths from the compiled executable
|
||||||
ldflags:
|
ldflags:
|
||||||
- '-s -w -X main.Version={{.Version}} -X main.VersionPrerelease= '
|
- '-s -w -X main.Version=v{{.Version}} -X main.VersionPrerelease= '
|
||||||
goos:
|
goos:
|
||||||
- linux
|
- linux
|
||||||
goarch:
|
goarch:
|
||||||
|
10
main.go
10
main.go
@ -13,18 +13,22 @@ import (
|
|||||||
|
|
||||||
var (
|
var (
|
||||||
// Version is the main version number that is being run at the moment.
|
// Version is the main version number that is being run at the moment.
|
||||||
Version = "v0.3.0"
|
Version string
|
||||||
|
|
||||||
// VersionPrerelease is A pre-release marker for the Version. If this is ""
|
// 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
|
// (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.
|
// is a pre-release such as "dev" (in development), "beta", "rc1", etc.
|
||||||
VersionPrerelease = ""
|
VersionPrerelease string
|
||||||
|
|
||||||
// PluginVersion is used by the plugin set to allow Packer to recognize
|
// PluginVersion is used by the plugin set to allow Packer to recognize
|
||||||
// what version this plugin is.
|
// what version this plugin is.
|
||||||
PluginVersion = version.InitializePluginVersion(Version, VersionPrerelease)
|
PluginVersion *version.PluginVersion
|
||||||
)
|
)
|
||||||
|
|
||||||
|
func init() {
|
||||||
|
PluginVersion = version.InitializePluginVersion(Version, VersionPrerelease)
|
||||||
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
pps := plugin.NewSet()
|
pps := plugin.NewSet()
|
||||||
pps.RegisterBuilder("iso", new(iso.Builder))
|
pps.RegisterBuilder("iso", new(iso.Builder))
|
||||||
|
Loading…
Reference in New Issue
Block a user