Sybren A. Stüvel
adfc2652b5
`internal/tools/tools.go` is a bit of a hacky workaround a limitation of `go mod tidy`. It will never be built, but `go mod tidy` will see the packages imported here as dependencies of the Flamenco project, and not remove them from `go.mod`. This is meant for build-time requirements that are otherwise never imported as Go libraries, like our OpenAPI code generator.
14 lines
393 B
Go
14 lines
393 B
Go
//go:build tools
|
|
|
|
// This file is a bit of a hacky workaround a limitation of `go mod tidy`. It
|
|
// will never be built, but `go mod tidy` will see the packages imported here as
|
|
// dependencies of the Flamenco project, and not remove them from `go.mod`.
|
|
|
|
package main
|
|
|
|
import (
|
|
// Go code generators:
|
|
_ "github.com/deepmap/oapi-codegen/cmd/oapi-codegen"
|
|
_ "github.com/golang/mock/mockgen"
|
|
)
|