MCPcopy Create free account
hub / github.com/Autodesk/AutomaticComponentToolkit / buildInfo

Function buildInfo

Source/componentdefinition.go:798–804  ·  view source on GitHub ↗
(version string)

Source from the content-addressed store, hash-verified

796 return additionalData[0]
797}
798func buildInfo(version string) string {
799 isValid, _, additionalData := decomposeVersionString(version)
800 if (!isValid) {
801 log.Fatal("invalid version")
802 }
803 return additionalData[1]
804}
805
806func decomposeVersionString(version string) (bool, [3]int, [2]string) {
807 var IsValidVersion = regexp.MustCompile("^([0-9]+)\\.([0-9]+)\\.([0-9]+)(\\-[a-zA-Z0-9.\\-]+)?(\\+[a-zA-Z0-9.\\-]+)?$")

Callers 2

Calls 1

decomposeVersionStringFunction · 0.85

Tested by

no test coverage detected