version

package
v1.16.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// FirstReleaseError is returned when the changelog dir is for the first release of a minor version
	FirstReleaseError = errors.New("First Release of Minor")
)

Functions

func ChangelogDirForLatestRelease

func ChangelogDirForLatestRelease[T namedEntry](files ...T) (
	currentRelease *versionutils.Version, unreleasedVersion *versionutils.Version, err error)

ChangelogDirForLatestRelease will return the latest release of the current minor from a set of file entries that mimick our changelog structure. It will also return the currently in flight release and an error The error may be FirstReleaseError if the changelog dir is for the first release of a minor version

func GetLastReleaseOfCurrentBranch

func GetLastReleaseOfCurrentBranch() (*versionutils.Version, error)

GetLastReleaseOfCurrentBranch returns the Version of the latest patch version for the current minor version To avoid querying the Github API, we use the changelog folder to determine this version Be aware, that while this has the benefit of not using an external API, we may hit issues where a release failed and therefore the returned version is not actually published.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL