versions

package
v1.31.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2026 License: Apache-2.0 Imports: 6 Imported by: 4 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package versions contains functions to parse and sort Bazel version identifier.

Index

Constants

View Source
const (
	// BazelUpstream contains the name of the official Bazel GitHub organization.
	BazelUpstream = "bazelbuild"
)

Variables

This section is empty.

Functions

func GetInAscendingOrder

func GetInAscendingOrder(versions []string) []string

GetInAscendingOrder returns the given versions sorted in ascending order.

func IsCommit added in v1.14.1

func IsCommit(version string) bool

IsCommit returns whether the given version refers to a commit, including last_green.

func MatchCommitPattern added in v1.22.0

func MatchCommitPattern(version string) bool

MatchCommitPattern returns whether the given version refers to a commit, not including last_green.

Types

type Info

type Info struct {
	MustBeRelease, MustBeCandidate bool
	IsLTS, IsRolling               bool
	IsCommit, IsFork, IsRelative   bool
	Fork, Value                    string
	LatestOffset, TrackRestriction int
}

Info represents a structured Bazel version identifier.

func Parse

func Parse(fork, version string) (*Info, error)

Parse extracts and returns structured information about the given Bazel version label.

Jump to

Keyboard shortcuts

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