Skip to content

Commit 65d63f9

Browse files
committed
Use go run for executing goimports
1 parent b1bdf10 commit 65d63f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coderd/database/generate.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
4848
# Ensure correct imports exist. Modules must all be downloaded so we get correct
4949
# suggestions.
5050
go mod download
51-
goimports -w queries.sql.go
51+
go run golang.org/x/tools/cmd/goimports@latest -w queries.sql.go
5252

5353
# Generate enums (e.g. unique constraints).
5454
go run gen/enum/main.go

0 commit comments

Comments
 (0)