MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/buildpacks / stackToVersion

Function stackToVersion

cmd/java/runtime/lib/lib.go:132–138  ·  view source on GitHub ↗

stackToVersion returns the default feature version for the given stack.

(stackID string)

Source from the content-addressed store, hash-verified

130}
131
132// stackToVersion returns the default feature version for the given stack.
133func stackToVersion(stackID string) string {
134 featureVersion := "21"
135 if version, ok := defaultFeatureVersion[stackID]; ok {
136 featureVersion = version
137 }
138 return featureVersion
139}
140
141// parseVersionJSON parses a JSON array of version information

Callers 2

TestStackToVersionFunction · 0.85
BuildFnFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestStackToVersionFunction · 0.68