mirror of
https://github.com/containers/podman.git
synced 2025-06-22 18:08:11 +08:00
add version/rawversion package
To prevent the `semver` packages from bloating Quadlet. Signed-off-by: Valentin Rothberg <vrothberg@redhat.com>
This commit is contained in:
10
version/rawversion/version.go
Normal file
10
version/rawversion/version.go
Normal file
@ -0,0 +1,10 @@
|
||||
package rawversion
|
||||
|
||||
// RawVersion is the raw version string.
|
||||
//
|
||||
// This indirection is needed to prevent semver packages from bloating
|
||||
// Quadlet's binary size.
|
||||
//
|
||||
// NOTE: remember to bump the version at the top of the top-level README.md
|
||||
// file when this is bumped.
|
||||
const RawVersion = "4.5.0-dev"
|
@ -2,6 +2,7 @@ package version
|
||||
|
||||
import (
|
||||
"github.com/blang/semver/v4"
|
||||
"github.com/containers/podman/v4/version/rawversion"
|
||||
)
|
||||
|
||||
type (
|
||||
@ -27,7 +28,7 @@ const (
|
||||
// NOTE: remember to bump the version at the top
|
||||
// of the top-level README.md file when this is
|
||||
// bumped.
|
||||
var Version = semver.MustParse("4.5.0-dev")
|
||||
var Version = semver.MustParse(rawversion.RawVersion)
|
||||
|
||||
// See https://docs.docker.com/engine/api/v1.40/
|
||||
// libpod compat handlers are expected to honor docker API versions
|
||||
|
Reference in New Issue
Block a user