From bc08542ed3c936107a519eec191ae806935769b1 Mon Sep 17 00:00:00 2001 From: Stefan Prodan Date: Thu, 6 Apr 2023 10:41:19 +0300 Subject: [PATCH] Generate CUE go.mod in CI Signed-off-by: Stefan Prodan --- .gitignore | 2 ++ Makefile | 2 ++ cue/README.md | 2 ++ 3 files changed, 6 insertions(+) diff --git a/.gitignore b/.gitignore index b9c6a217..9f48c7ae 100644 --- a/.gitignore +++ b/.gitignore @@ -21,3 +21,5 @@ gcloud/ dist/ bin/ cue/cue.mod/gen/ +cue/go.mod +cue/go.sum diff --git a/Makefile b/Makefile index 6717e6c7..3d7becc6 100644 --- a/Makefile +++ b/Makefile @@ -97,6 +97,8 @@ swagger: .PHONY: cue-mod cue-mod: + @cd cue && go mod init github.com/stefanprodan/podinfo/cue + @cd cue && go get k8s.io/api/... @cd cue && cue get go k8s.io/api/... .PHONY: cue-gen diff --git a/cue/README.md b/cue/README.md index 33db090b..186f3171 100644 --- a/cue/README.md +++ b/cue/README.md @@ -16,6 +16,8 @@ brew install cue Generate the Kubernetes API definitions required by this module with: ```shell +go mod init github.com/stefanprodan/podinfo/cue +go get k8s.io/api/... cue get go k8s.io/api/... ```