Skip to content

Commit 5a694f7

Browse files
authored
fix: typo in module reference (#406)
1 parent 954a338 commit 5a694f7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

internal/config/moduleconfig/module_config.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import (
88
"reflect"
99
"strings"
1010

11-
goVerson "github.com/hashicorp/go-version"
11+
goVersion "github.com/hashicorp/go-version"
1212
yaml "gopkg.in/yaml.v2"
1313

1414
"github.com/commitdev/zero/internal/config/projectconfig"
@@ -38,7 +38,7 @@ type ModuleCommands struct {
3838
}
3939

4040
func checkVersionAgainstConstrains(vc VersionConstraints, versionString string) bool {
41-
v, err := goVerson.NewVersion(versionString)
41+
v, err := goVersion.NewVersion(versionString)
4242
if err != nil {
4343
return false
4444
}
@@ -100,7 +100,7 @@ type TemplateConfig struct {
100100
}
101101

102102
type VersionConstraints struct {
103-
goVerson.Constraints
103+
goVersion.Constraints
104104
}
105105

106106
// A "nice" wrapper around findMissing()
@@ -273,7 +273,7 @@ func (semVer *VersionConstraints) UnmarshalYAML(unmarshal func(interface{}) erro
273273
return err
274274
}
275275
if versionString != "" {
276-
constraints, constErr := goVerson.NewConstraint(versionString)
276+
constraints, constErr := goVersion.NewConstraint(versionString)
277277
// If an invalid constraint is declared in a module
278278
// instead of erroring out we just print a warning message
279279
if constErr != nil {

0 commit comments

Comments
 (0)