mirror of
https://github.com/coder/coder.git
synced 2026-09-22 05:05:20 +08:00
chore: manage tool versions in go.mod (#21455)
Go 1.24 adds [tool dependencies](https://go.dev/doc/modules/managing-dependencies#tools). This allows us to track versions of tools in our `go.mod` instead of sprinkling various `go run` commands throughout our codebase. NOTE: there are still various hard-coded `go install` commands in our dogfood Dockerfile. As that list is likely severely outdated, will leave that for a separate PR.
This commit is contained in:
@@ -55,7 +55,7 @@ SCRIPT_DIR=$(dirname "${BASH_SOURCE[0]}")
|
||||
# Ensure correct imports exist. Modules must all be downloaded so we get correct
|
||||
# suggestions.
|
||||
go mod download
|
||||
go run golang.org/x/tools/cmd/goimports@latest -w queries.sql.go
|
||||
go tool golang.org/x/tools/cmd/goimports -w queries.sql.go
|
||||
|
||||
go run ../../scripts/dbgen
|
||||
# This will error if a view is broken. This is in it's own package to avoid
|
||||
|
||||
Reference in New Issue
Block a user