mirror of
https://github.com/open-cluster-management-io/ocm.git
synced 2026-05-16 14:18:42 +00:00
* 🌱 add a verify rule for golang files import order This PR uses the [gci tool](https://github.com/daixiang0/gci) to make all go files' import section with a specific order, it will organize import with group with order: 1. standard library modules 2. 3rd party modules 3. modules in OCM org, like the `open-cluster-management.io/api` 4. current project `open-cluster-management.io/ocm` modules developers can use the `make fmt-imports` to format the import automatically and the `make verify-fmt-imports` to check for any violation. Signed-off-by: zhujian <jiazhu@redhat.com> * 🌱 format the go files import Signed-off-by: zhujian <jiazhu@redhat.com> --------- Signed-off-by: zhujian <jiazhu@redhat.com>
18 lines
566 B
Go
18 lines
566 B
Go
//go:build tools
|
|
// +build tools
|
|
|
|
// go mod won't pull in code that isn't depended upon, but we have some code we don't depend on from code that must be included
|
|
// for our build to work.
|
|
package dependencymagnet
|
|
|
|
import (
|
|
_ "github.com/openshift/build-machinery-go"
|
|
|
|
_ "open-cluster-management.io/api/addon/v1alpha1"
|
|
_ "open-cluster-management.io/api/cluster/v1"
|
|
_ "open-cluster-management.io/api/cluster/v1alpha1"
|
|
_ "open-cluster-management.io/api/cluster/v1beta1"
|
|
_ "open-cluster-management.io/api/crdsv1beta1"
|
|
_ "open-cluster-management.io/api/work/v1"
|
|
)
|