From 3bc475af4e55a9e83b5784c42367e4d3417924c1 Mon Sep 17 00:00:00 2001 From: Michael Adler Date: Thu, 31 Aug 2023 14:33:10 +0200 Subject: [PATCH] refactor: use go run @latest syntax The @latest syntax has been added in Go 1.16 and prevents go.mod from being modified. We can therefore omit the invocation of `go mod tidy`. Signed-off-by: Michael Adler --- justfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/justfile b/justfile index 31385275..17778a7b 100644 --- a/justfile +++ b/justfile @@ -104,14 +104,12 @@ _generate-ent: set -euxo pipefail cd "{{ THISDIR }}/generated/ent" find . -not -name generate.go -and -not -name main.go -and -not -path "**/schema/*" -type f -delete - go run -mod=mod entgo.io/ent/cmd/ent generate --header \ + go run entgo.io/ent/cmd/ent@latest generate --header \ "// SPDX-FileCopyrightText: The entgo authors // SPDX-License-Identifier: Apache-2.0 // Code generated by ent, DO NOT EDIT." --feature sql/execquery,sql/versioned-migration ./schema - go mod tidy - # Generate code generate: _generate-swagger _generate-ent