MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / semverCompare

Function semverCompare

compose/compose.go:534–546  ·  view source on GitHub ↗
(constraint, version string)

Source from the content-addressed store, hash-verified

532}
533
534func semverCompare(constraint, version string) (bool, error) {
535 c, err := sv.NewConstraint(constraint)
536 if err != nil {
537 return false, err
538 }
539
540 v, err := sv.NewVersion(version)
541 if err != nil {
542 return false, err
543 }
544
545 return c.Check(v), nil
546}
547
548func isBindMount(vol string) bool {
549 return strings.HasPrefix(vol, ".") || strings.HasPrefix(vol, "/")

Callers 1

getAlphaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…