Validate and publish source-only candidates

This commit is contained in:
2026-12-05 21:05:56 +00:00
parent 0f9923d230
commit 3b925231d5
18 changed files with 291 additions and 56 deletions

View File

@@ -1,11 +1,15 @@
package versioncontract
import (
"errors"
"strconv"
"strings"
"time"
)
// ErrInvalidIdentifier identifies a production identifier outside its grammar.
var ErrInvalidIdentifier = errors.New("invalid release identifier")
// ValidStableVersion reports whether version uses the selected vMAJOR.MINOR.PATCH form.
func ValidStableVersion(version string) bool {
return ValidIdentifier(version, "semver", "v")