Skip to content

Commit

Permalink
ci: pin entgo version for stable codegen
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Adler <[email protected]>
michaeladler authored and stormc committed Nov 20, 2023
1 parent 6e9c8ec commit 0da23ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion justfile
Original file line number Diff line number Diff line change
@@ -104,9 +104,10 @@ _generate-swagger:
_generate-ent:
#!/usr/bin/env bash
set -euxo pipefail
ENT_VERSION=$(grep entgo.io/ent "{{ THISDIR }}/go.mod" | awk -F' ' '{ print $2; }')
cd "{{ THISDIR }}/generated/ent"
find . -not -name generate.go -and -not -name main.go -and -not -path "**/schema/*" -type f -delete
go run entgo.io/ent/cmd/ent@latest generate --header \
go run entgo.io/ent/cmd/ent@${ENT_VERSION} generate --header \
"// SPDX-FileCopyrightText: The entgo authors
// SPDX-License-Identifier: Apache-2.0

0 comments on commit 0da23ea

Please sign in to comment.