Extend and optimize relocatable build config infrastructure

This commit is contained in:
Gregory Kurtzer
2022-01-15 03:32:32 +00:00
parent be41b79261
commit 8da7dd415a
23 changed files with 258 additions and 348 deletions

View File

@@ -1,7 +1,11 @@
package version
var Version string = "development"
import (
"fmt"
"github.com/hpcng/warewulf/internal/pkg/buildconfig"
)
func GetVersion() string {
return Version
return fmt.Sprintf("%s-%s", buildconfig.VERSION, buildconfig.RELEASE)
}