debian-forge-composer/internal/tools.go
Brian C. Lane b1c2dbdfc6 Remove old build tag comments
Go is transitioning from the old '// +build' form to '//go:build', this
removes all uses of the old form, adding the new one where needed.

See https://go.googlesource.com/proposal/+/master/design/draft-gobuild.md
2023-03-07 09:22:23 -08:00

15 lines
502 B
Go

//go:build tools
// This file is here to just explicitly tell `go mod vendor` that we depend
// on oapi-codegen. Without this file, `go generate ./...` in Go >= 1.14 gets
// confused because oapi-codegen is not being vendored.
//
// This is apparently the conventional way, see:
// https://stackoverflow.com/questions/52428230/how-do-go-modules-work-with-installable-commands
// https://github.com/golang/go/issues/29516
package main
import (
_ "github.com/deepmap/oapi-codegen/cmd/oapi-codegen"
)