Skip to content

Commit f502152

Browse files
committed
chore: updates Makefile for generation
Tested with cue version v0.17.0-0.dev.0.20260320151706-d267795de4d3 Signed-off-by: Jennifer Power <barnabei.jennifer@gmail.com>
1 parent 8977096 commit f502152

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

Makefile

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ GOFLAGS :=
1010
COVERFILE := coverage.out
1111
TESTCOVERAGE_THRESHOLD := 71
1212
GOLANGCI_LINT := golangci-lint
13-
SPECVERSION := v1.0.0-rc.1
13+
SPECVERSION := v1.0.0-rc.0
1414

1515
.PHONY: all tidy fmtcheck fmt vet lint test testcov race coverage-check build install generate ci-local clean help
1616

@@ -135,16 +135,11 @@ install:
135135
@echo " > Installing module/binaries"
136136
@go install ./...
137137

138-
update-schema:
139-
@echo " > Pulling down Gemara CUE package"
140-
@cue def github.com/gemaraproj/gemara@$(SPECVERSION) --outfile schema.cue --force
141-
142138
# Generate files from CUE schemas
143139
# Generates Go types from the Gemara CUE package with stable and experimental variants
144140
generate:
145141
@echo " > Generating types from Gemara CUE package"
146-
@cue exp gengotypes schema.cue
147-
@mv cue_types_gen.go generated_types.go
142+
@cue exp gengotypes --outfile generated_types.go github.com/gemaraproj/gemara@$(SPECVERSION)
148143
@go run ./cmd/typestagger generated_types.go
149144

150145
genlocal:

0 commit comments

Comments
 (0)