File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
internal/config/moduleconfig Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 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
4040func 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
102102type 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 {
You can’t perform that action at this time.
0 commit comments