isSemanticVersionTag checks if a ref string looks like a semantic version tag Uses golang.org/x/mod/semver for proper semantic version validation
(ref string)
| 10 | // isSemanticVersionTag checks if a ref string looks like a semantic version tag |
| 11 | // Uses golang.org/x/mod/semver for proper semantic version validation |
| 12 | func isSemanticVersionTag(ref string) bool { |
| 13 | return semverutil.IsValid(ref) |
| 14 | } |
| 15 | |
| 16 | // parseVersion parses a semantic version string and returns a *semverutil.SemanticVersion. |
| 17 | // Uses golang.org/x/mod/semver for proper semantic version parsing. |