mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2025-12-17 04:36:17 +01:00
Switch to new go tool pattern for external tool deps
This commit is contained in:
4
Makefile
4
Makefile
@@ -50,12 +50,12 @@ frontend:
|
|||||||
|
|
||||||
swagger:
|
swagger:
|
||||||
$(info ===> GENERATE swagger)
|
$(info ===> GENERATE swagger)
|
||||||
@go run github.com/swaggo/swag/cmd/swag init --parseDependency -d ./internal/api -g rest.go -o ./api
|
@go tool github.com/swaggo/swag/cmd/swag init --parseDependency -d ./internal/api -g rest.go -o ./api
|
||||||
@mv ./api/docs.go ./internal/api/docs.go
|
@mv ./api/docs.go ./internal/api/docs.go
|
||||||
|
|
||||||
graphql:
|
graphql:
|
||||||
$(info ===> GENERATE graphql)
|
$(info ===> GENERATE graphql)
|
||||||
@go run github.com/99designs/gqlgen
|
@go tool github.com/99designs/gqlgen
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(info ===> CLEAN)
|
$(info ===> CLEAN)
|
||||||
|
|||||||
5
go.mod
5
go.mod
@@ -4,6 +4,11 @@ go 1.24.0
|
|||||||
|
|
||||||
toolchain go1.24.1
|
toolchain go1.24.1
|
||||||
|
|
||||||
|
tool (
|
||||||
|
github.com/99designs/gqlgen
|
||||||
|
github.com/swaggo/swag/cmd/swag
|
||||||
|
)
|
||||||
|
|
||||||
require (
|
require (
|
||||||
github.com/99designs/gqlgen v0.17.84
|
github.com/99designs/gqlgen v0.17.84
|
||||||
github.com/ClusterCockpit/cc-lib v1.0.0
|
github.com/ClusterCockpit/cc-lib v1.0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user