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