fix word `constrint` to `constraint`

Signed-off-by: czm <zhongming.chang@daocloud.io>
pull/6114/head
AllenZMC 6 years ago committed by czm
parent 2f16e0ed26
commit 6485fec309

@ -136,7 +136,7 @@ func (i *VCSInstaller) solveVersion(repo vcs.Repo) (string, error) {
sort.Sort(sort.Reverse(semver.Collection(semvers))) sort.Sort(sort.Reverse(semver.Collection(semvers)))
for _, v := range semvers { for _, v := range semvers {
if constraint.Check(v) { if constraint.Check(v) {
// If the constrint passes get the original reference // If the constraint passes get the original reference
ver := v.Original() ver := v.Original()
debug("setting to %s", ver) debug("setting to %s", ver)
return ver, nil return ver, nil

Loading…
Cancel
Save