File tree Expand file tree Collapse file tree 6 files changed +6
-637
lines changed
pkg/plugins/hybrid/v1alpha/scaffolds/internal/templates
testdata/hybrid/memcached-operator Expand file tree Collapse file tree 6 files changed +6
-637
lines changed Original file line number Diff line number Diff line change 17
17
- name : Set up Go
18
18
uses : actions/setup-go@v3
19
19
with :
20
- go-version : ~1.17
20
+ go-version : ~1.18
21
21
id : go
22
22
23
23
- name : Check out code into the Go module directory
56
56
- name : Set up Go
57
57
uses : actions/setup-go@v3
58
58
with :
59
- go-version : ~1.17
59
+ go-version : ~1.18
60
60
id : go
61
61
62
62
- name : Check out code into the Go module directory
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ func (f *GoMod) SetTemplateDefaults() error {
46
46
const goModTemplate = `
47
47
module {{ .Repo }}
48
48
49
- go 1.17
49
+ go 1.18
50
50
51
51
require (
52
52
sigs.k8s.io/controller-runtime {{ .ControllerRuntimeVersion }}
Original file line number Diff line number Diff line change @@ -176,7 +176,7 @@ TMP_DIR=$$(mktemp -d) ;\
176
176
cd $$TMP_DIR ;\
177
177
go mod init tmp ;\
178
178
echo "Downloading $(2)" ;\
179
- GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
179
+ GOBIN=$(PROJECT_DIR)/bin go get $(2) && GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
180
180
rm -rf $$TMP_DIR ;\
181
181
}
182
182
endef
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ TMP_DIR=$$(mktemp -d) ;\
103
103
cd $$TMP_DIR ;\
104
104
go mod init tmp ;\
105
105
echo "Downloading $(2 ) " ;\
106
- GOBIN=$(PROJECT_DIR ) /bin go get $(2 ) ;\
106
+ GOBIN=$(PROJECT_DIR ) /bin go get $(2 ) && GOBIN= $( PROJECT_DIR ) /bin go install $( 2 ) ;\
107
107
rm -rf $$TMP_DIR ;\
108
108
}
109
109
endef
Original file line number Diff line number Diff line change 1
1
module github.com/example/memcached-operator
2
2
3
- go 1.17
3
+ go 1.18
4
4
5
5
require (
6
6
github.com/onsi/ginkgo v1.16.5
You can’t perform that action at this time.
0 commit comments