Skip to content

Commit

Permalink
fix: change minimum go version
Browse files Browse the repository at this point in the history
Signed-off-by: Dustin Scott <dustin.scott18@gmail.com>
  • Loading branch information
scottd018 committed Jun 20, 2022
1 parent b6d9d85 commit 820e43b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/vmware-tanzu-labs/operator-builder

go 1.18
go 1.17

require (
github.com/go-playground/validator v9.31.0+incompatible
Expand Down
8 changes: 4 additions & 4 deletions internal/plugins/workload/v1/scaffolds/templates/gomod.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@ import (
var _ machinery.Template = &GoMod{}

const (
GoVersion = "1.18"
GoVersionMinimum = "1.17"
)

// GoMod scaffolds a file that defines the project dependencies.
type GoMod struct {
machinery.TemplateMixin
machinery.RepositoryMixin

GoVersion string
Dependencies map[string]string
GoVersionMinimum string
Dependencies map[string]string
}

// goModDependencyMap pins the versions within the go.mod file so that they
Expand Down Expand Up @@ -50,7 +50,7 @@ func (f *GoMod) SetTemplateDefaults() error {
f.Path = "go.mod"
}

f.GoVersion = GoVersion
f.GoVersionMinimum = GoVersionMinimum
f.Dependencies = goModDependencyMap()
f.TemplateBody = goModTemplate
f.IfExistsAction = machinery.OverwriteFile
Expand Down

0 comments on commit 820e43b

Please sign in to comment.