mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-29 17:41:13 +00:00
Pin tool versions with hack/go.mod (#5622)
* Pin tool versions with hack/go.mod This change centralizes the tracking of versions for tools used for development and testing. This way, the tools and all their dependencies have their checksums stored in hack/go.sum, which improves supply chain security. * Workspace Sync & Tidy
This commit is contained in:
@@ -1,15 +1,41 @@
|
||||
// Copyright 2022 The Kubernetes Authors.
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
//go:build tools
|
||||
// +build tools
|
||||
|
||||
// This package imports things required by build scripts, to force `go mod` to see them as dependencies
|
||||
// This package imports tools required by build scripts.
|
||||
// https://github.com/golang/go/wiki/Modules#how-can-i-track-tool-dependencies-for-a-module
|
||||
// To update the pinned versions, update `go.mod` or call `go get URL@VERSION“
|
||||
package hack
|
||||
|
||||
import (
|
||||
// for code generation
|
||||
_ "golang.org/x/tools/cmd/stringer"
|
||||
// for lint checks
|
||||
// for code formatting
|
||||
_ "golang.org/x/tools/cmd/goimports"
|
||||
// for code linting
|
||||
_ "github.com/golangci/golangci-lint/cmd/golangci-lint"
|
||||
// for site serving
|
||||
_ "github.com/gohugoio/hugo"
|
||||
// for testable markdown examples
|
||||
_ "github.com/monopole/mdrip"
|
||||
// for cobra command help text generation from markdown
|
||||
_ "sigs.k8s.io/kustomize/cmd/mdtogo"
|
||||
// for license file header injection
|
||||
_ "github.com/google/addlicense"
|
||||
// for local testing
|
||||
_ "sigs.k8s.io/kind"
|
||||
// for embeding code and manifest into markdown docs
|
||||
_ "github.com/campoy/embedmd"
|
||||
// for generating CRDs
|
||||
_ "sigs.k8s.io/controller-tools/cmd/controller-gen"
|
||||
// for bundling non-go files into go binaries
|
||||
_ "github.com/go-bindata/go-bindata/v3/go-bindata"
|
||||
// for checking Go API compatibility
|
||||
_ "github.com/joelanford/go-apidiff"
|
||||
// for creating GitHub PRs & releases
|
||||
_ "github.com/cli/cli/cmd/gh"
|
||||
// for validating k8s manifests
|
||||
_ "github.com/instrumenta/kubeval"
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user