MCPcopy Index your code
hub / github.com/dagger/dagger / CheckMaxVersionCompatibility

Function CheckMaxVersionCompatibility

engine/version.go:112–118  ·  view source on GitHub ↗
(version string, maxVersion string)

Source from the content-addressed store, hash-verified

110}
111
112func CheckMaxVersionCompatibility(version string, maxVersion string) bool {
113 if IsDevVersion(version) && IsDevVersion(Version) {
114 // see CheckVersionCompatibility
115 version = BaseVersion(version)
116 }
117 return semver.Compare(version, maxVersion) <= 0
118}
119
120func NormalizeVersion(version string) string {
121 version = cleanVersion(version)

Callers 3

ParseModuleConfigFunction · 0.92
moduleSourceAsModuleMethod · 0.92

Calls 3

IsDevVersionFunction · 0.85
BaseVersionFunction · 0.85
CompareMethod · 0.45

Tested by

no test coverage detected