mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +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:
Generated
+5
-2
@@ -1,5 +1,4 @@
|
||||
// Package apidoc GENERATED BY SWAG; DO NOT EDIT
|
||||
// This file was generated by swaggo/swag
|
||||
// Package apidoc Code generated by swaggo/swag. DO NOT EDIT
|
||||
package apidoc
|
||||
|
||||
import "github.com/swaggo/swag"
|
||||
@@ -3787,6 +3786,7 @@ const docTemplate = `{
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"collectionFormat": "csv",
|
||||
"description": "Filter results by job IDs",
|
||||
"name": "ids",
|
||||
"in": "query"
|
||||
@@ -3897,6 +3897,7 @@ const docTemplate = `{
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"collectionFormat": "csv",
|
||||
"description": "Filter results by job IDs",
|
||||
"name": "ids",
|
||||
"in": "query"
|
||||
@@ -22769,6 +22770,8 @@ var SwaggerInfo = &swag.Spec{
|
||||
Description: "Coderd is the service created by running coder server. It is a thin API that connects workspaces, provisioners and users. coderd stores its state in Postgres and is the only service that communicates with Postgres.",
|
||||
InfoInstanceName: "swagger",
|
||||
SwaggerTemplate: docTemplate,
|
||||
LeftDelim: "{{",
|
||||
RightDelim: "}}",
|
||||
}
|
||||
|
||||
func init() {
|
||||
|
||||
Generated
+2
@@ -3332,6 +3332,7 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"collectionFormat": "csv",
|
||||
"description": "Filter results by job IDs",
|
||||
"name": "ids",
|
||||
"in": "query"
|
||||
@@ -3436,6 +3437,7 @@
|
||||
"items": {
|
||||
"type": "string"
|
||||
},
|
||||
"collectionFormat": "csv",
|
||||
"description": "Filter results by job IDs",
|
||||
"name": "ids",
|
||||
"in": "query"
|
||||
|
||||
@@ -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