2026-04-06 15:48:37 +05:30
|
|
|
// Copyright IBM Corp. 2020, 2026
|
2020-05-01 12:38:01 -07:00
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
2023-02-02 17:15:17 -08:00
|
|
|
|
2021-09-27 16:24:00 -04:00
|
|
|
//go:build tools
|
2020-04-28 11:20:37 -07:00
|
|
|
// +build tools
|
|
|
|
|
|
2020-05-01 12:38:01 -07:00
|
|
|
// This file ensures tool dependencies are kept in sync. This is the
|
|
|
|
|
// recommended way of doing this according to
|
2020-04-28 11:20:37 -07:00
|
|
|
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
|
|
|
|
|
// To install the following tools at the version used by this repo run:
|
2020-08-14 14:08:12 -07:00
|
|
|
// $ make tools
|
2020-05-01 12:38:01 -07:00
|
|
|
// or
|
|
|
|
|
// $ go generate -tags tools tools/tools.go
|
2020-04-28 11:20:37 -07:00
|
|
|
|
|
|
|
|
package tools
|
|
|
|
|
|
2020-05-21 10:38:07 -04:00
|
|
|
// NOTE: This must not be indented, so to stop goimports from trying to be
|
|
|
|
|
// helpful, it's separated out from the import block below. Please try to keep
|
|
|
|
|
// them in the same order.
|
2021-01-07 10:02:32 -05:00
|
|
|
//go:generate go install mvdan.cc/gofumpt
|
2020-05-21 10:38:07 -04:00
|
|
|
//go:generate go install github.com/favadi/protoc-go-inject-tag
|
2020-07-23 11:26:15 -07:00
|
|
|
//go:generate go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway
|
|
|
|
|
//go:generate go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2
|
2020-05-21 10:38:07 -04:00
|
|
|
//go:generate go install golang.org/x/tools/cmd/goimports
|
|
|
|
|
//go:generate go install github.com/oligot/go-mod-upgrade
|
2020-10-09 13:18:53 -04:00
|
|
|
//go:generate go install google.golang.org/protobuf/cmd/protoc-gen-go
|
|
|
|
|
//go:generate go install google.golang.org/grpc/cmd/protoc-gen-go-grpc
|
2020-05-21 10:38:07 -04:00
|
|
|
|
2020-05-19 12:10:39 -07:00
|
|
|
import (
|
2021-01-07 10:02:32 -05:00
|
|
|
_ "mvdan.cc/gofumpt"
|
|
|
|
|
|
2020-05-19 12:10:39 -07:00
|
|
|
_ "github.com/favadi/protoc-go-inject-tag"
|
2020-05-01 12:38:01 -07:00
|
|
|
|
2020-07-23 11:26:15 -07:00
|
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway"
|
2020-05-01 12:38:01 -07:00
|
|
|
|
2020-07-23 11:26:15 -07:00
|
|
|
_ "github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2"
|
2020-05-19 12:10:39 -07:00
|
|
|
|
|
|
|
|
_ "golang.org/x/tools/cmd/goimports"
|
2020-05-19 15:14:26 -04:00
|
|
|
|
|
|
|
|
_ "github.com/oligot/go-mod-upgrade"
|
2020-05-21 10:38:07 -04:00
|
|
|
|
2020-10-09 13:18:53 -04:00
|
|
|
_ "google.golang.org/protobuf/cmd/protoc-gen-go"
|
|
|
|
|
|
|
|
|
|
_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
|
2020-05-19 12:10:39 -07:00
|
|
|
)
|