vitess.io/vitess@v0.16.2/tools/tools.go (about)

     1  //go:build tools
     2  // +build tools
     3  
     4  /*
     5   * Copyright 2019 The Vitess Authors.
     6  
     7   * Licensed under the Apache License, Version 2.0 (the "License");
     8   * you may not use this file except in compliance with the License.
     9   * You may obtain a copy of the License at
    10  
    11   *     http://www.apache.org/licenses/LICENSE-2.0
    12  
    13   * Unless required by applicable law or agreed to in writing, software
    14   * distributed under the License is distributed on an "AS IS" BASIS,
    15   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    16   * See the License for the specific language governing permissions and
    17   * limitations under the License.
    18   */
    19  
    20  package tools
    21  
    22  // These imports ensure that "go mod tidy" won't remove deps
    23  // for build-time dependencies like linters and code generators
    24  import (
    25  	_ "github.com/golang/mock/mockgen"
    26  	_ "github.com/planetscale/vtprotobuf/cmd/protoc-gen-go-vtproto"
    27  	_ "golang.org/x/lint"
    28  	_ "golang.org/x/tools/cmd/cover"
    29  	_ "golang.org/x/tools/cmd/goimports"
    30  	_ "golang.org/x/tools/cmd/goyacc"
    31  	_ "google.golang.org/grpc/cmd/protoc-gen-go-grpc"
    32  	_ "google.golang.org/protobuf/cmd/protoc-gen-go"
    33  	_ "honnef.co/go/tools/cmd/staticcheck"
    34  	_ "k8s.io/code-generator/cmd/client-gen"
    35  	_ "k8s.io/code-generator/cmd/deepcopy-gen"
    36  	_ "k8s.io/code-generator/cmd/informer-gen"
    37  	_ "k8s.io/code-generator/cmd/lister-gen"
    38  )