mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-01-24 14:22:14 -05:00
tools: version tools in tools.go
Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
70ca69f6bc
commit
33fbac87fb
@ -133,7 +133,6 @@ oci_register_toolchains(
|
||||
)
|
||||
|
||||
# Multirun
|
||||
|
||||
load("//bazel/toolchains:multirun_deps.bzl", "multirun_deps")
|
||||
|
||||
multirun_deps()
|
||||
|
@ -33,3 +33,14 @@ string_flag(
|
||||
"host",
|
||||
],
|
||||
)
|
||||
|
||||
bool_flag(
|
||||
name = "select_never",
|
||||
build_setting_default = False,
|
||||
)
|
||||
|
||||
config_setting(
|
||||
name = "select_never_enabled",
|
||||
flag_values = {":select_never": "True"},
|
||||
visibility = ["//visibility:public"],
|
||||
)
|
||||
|
@ -15,6 +15,23 @@ def go_dependencies():
|
||||
sum = "h1:cuNDWLUTbKRtEZwhB0WQBXf9pGbm87pUBXQhvcFxBWg=",
|
||||
version = "v0.11.2",
|
||||
)
|
||||
go_repository(
|
||||
name = "cc_mvdan_editorconfig",
|
||||
build_file_generation = "on",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "mvdan.cc/editorconfig",
|
||||
sum = "h1:XL+7ys6ls/RKrkUNFQvEwIvNHh+JKx8Mj1pUV5wQxQE=",
|
||||
version = "v0.2.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "cc_mvdan_gofumpt",
|
||||
build_file_generation = "on",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "mvdan.cc/gofumpt",
|
||||
sum = "h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=",
|
||||
version = "v0.4.0",
|
||||
)
|
||||
|
||||
go_repository(
|
||||
name = "co_honnef_go_tools",
|
||||
build_file_generation = "on",
|
||||
@ -1928,8 +1945,8 @@ def go_dependencies():
|
||||
build_file_generation = "on",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/frankban/quicktest",
|
||||
sum = "h1:FJKSZTDHjyhriyC81FLQ0LY93eSai0ZyR/ZIkd3ZUKE=",
|
||||
version = "v1.14.3",
|
||||
sum = "h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=",
|
||||
version = "v1.14.4",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_fsnotify_fsnotify",
|
||||
@ -2778,6 +2795,15 @@ def go_dependencies():
|
||||
sum = "h1:GOZbcHa3HfsPKPlmyPyN2KEohoMXOhdMbHrvbpl2QaA=",
|
||||
version = "v0.1.0",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_google_renameio_v2",
|
||||
build_file_generation = "on",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/google/renameio/v2",
|
||||
sum = "h1:UifI23ZTGY8Tt29JbYFiuyIU3eX+RNFtUwefq9qAhxg=",
|
||||
version = "v2.0.0",
|
||||
)
|
||||
|
||||
go_repository(
|
||||
name = "com_github_google_rpmpack",
|
||||
build_file_generation = "on",
|
||||
@ -3798,6 +3824,14 @@ def go_dependencies():
|
||||
sum = "h1:sCAqWuJV7nPzGrlb0os3j49lk2JhILT0rID38NHNLpA=",
|
||||
version = "v0.0.4",
|
||||
)
|
||||
go_repository(
|
||||
name = "com_github_katexochen_sh_v3",
|
||||
build_file_generation = "on",
|
||||
build_file_proto_mode = "disable_global",
|
||||
importpath = "github.com/katexochen/sh/v3",
|
||||
sum = "h1:eIG0cBgpy2u2iQDFgi4fY0Yq38kVBzMSetzuU+ZIGRg=",
|
||||
version = "v3.6.0",
|
||||
)
|
||||
|
||||
go_repository(
|
||||
name = "com_github_kevinburke_ssh_config",
|
||||
|
1
go.work
1
go.work
@ -3,6 +3,7 @@ go 1.20
|
||||
use (
|
||||
.
|
||||
./hack
|
||||
./hack/tools
|
||||
./operators/constellation-node-operator/
|
||||
./operators/constellation-node-operator/api
|
||||
./3rdparty/node-maintenance-operator/
|
||||
|
16
hack/tools/BUILD.bazel
Normal file
16
hack/tools/BUILD.bazel
Normal file
@ -0,0 +1,16 @@
|
||||
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
||||
|
||||
# keep
|
||||
go_library(
|
||||
name = "tools_lib",
|
||||
srcs = ["tools.go"],
|
||||
importpath = "github.com/edgelesssys/constellation/v2/hack/tools",
|
||||
visibility = ["//visibility:private"],
|
||||
deps = select({
|
||||
"//bazel/settings:select_never_enabled": [
|
||||
"@cc_mvdan_gofumpt//:gofumpt",
|
||||
"@com_github_katexochen_sh_v3//cmd/shfmt",
|
||||
],
|
||||
"//conditions:default": [],
|
||||
}),
|
||||
)
|
20
hack/tools/go.mod
Normal file
20
hack/tools/go.mod
Normal file
@ -0,0 +1,20 @@
|
||||
module github.com/edgelesssys/constellation/v2/hack/tools
|
||||
|
||||
go 1.20
|
||||
|
||||
require (
|
||||
github.com/katexochen/sh/v3 v3.6.0
|
||||
mvdan.cc/gofumpt v0.4.0
|
||||
)
|
||||
|
||||
require (
|
||||
github.com/google/go-cmp v0.5.9 // indirect
|
||||
github.com/google/renameio/v2 v2.0.0 // indirect
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e // indirect
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 // indirect
|
||||
golang.org/x/sync v0.1.0 // indirect
|
||||
golang.org/x/sys v0.3.0 // indirect
|
||||
golang.org/x/term v0.3.0 // indirect
|
||||
golang.org/x/tools v0.1.12 // indirect
|
||||
mvdan.cc/editorconfig v0.2.0 // indirect
|
||||
)
|
26
hack/tools/go.sum
Normal file
26
hack/tools/go.sum
Normal file
@ -0,0 +1,26 @@
|
||||
github.com/frankban/quicktest v1.14.4 h1:g2rn0vABPOOXmZUj+vbmUp0lPoXEMuhTpIluN0XL9UY=
|
||||
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
|
||||
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
|
||||
github.com/google/renameio/v2 v2.0.0 h1:UifI23ZTGY8Tt29JbYFiuyIU3eX+RNFtUwefq9qAhxg=
|
||||
github.com/google/renameio/v2 v2.0.0/go.mod h1:BtmJXm5YlszgC+TD4HOEEUFgkJP3nLxehU6hfe7jRt4=
|
||||
github.com/katexochen/sh/v3 v3.6.0 h1:eIG0cBgpy2u2iQDFgi4fY0Yq38kVBzMSetzuU+ZIGRg=
|
||||
github.com/katexochen/sh/v3 v3.6.0/go.mod h1:48/8duZflB7zABbqxMd1W3TE7d7yQl4L+34WsidGQrA=
|
||||
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
|
||||
github.com/kr/text v0.2.0 h1:5Nx0Ya0ZqY2ygV366QzturHI13Jq95ApcVaJBhpS+AY=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e h1:aoZm08cpOy4WuID//EZDgcC4zIxODThtZNPirFr42+A=
|
||||
github.com/pkg/diff v0.0.0-20210226163009-20ebb0f2a09e/go.mod h1:pJLUxLENpZxwdsKMEsNbx1VGcRFpLqf3715MtcvvzbA=
|
||||
github.com/rogpeppe/go-internal v1.9.0 h1:73kH8U+JUqXU8lRuOHeVHaa/SZPifC7BkcraZVejAe8=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4 h1:6zppjxzCulZykYSLyVDYbneBfbaBIQPYMevg0bEwv2s=
|
||||
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
|
||||
golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o=
|
||||
golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
|
||||
golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=
|
||||
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
|
||||
golang.org/x/term v0.3.0 h1:qoo4akIqOcDME5bhc/NgxUdovd6BSS2uMsVjB56q1xI=
|
||||
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
|
||||
golang.org/x/tools v0.1.12 h1:VveCTK38A2rkS8ZqFY25HIDFscX5X9OoEhJd3quQmXU=
|
||||
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
|
||||
mvdan.cc/editorconfig v0.2.0 h1:XL+7ys6ls/RKrkUNFQvEwIvNHh+JKx8Mj1pUV5wQxQE=
|
||||
mvdan.cc/editorconfig v0.2.0/go.mod h1:lvnnD3BNdBYkhq+B4uBuFFKatfp02eB6HixDvEz91C0=
|
||||
mvdan.cc/gofumpt v0.4.0 h1:JVf4NN1mIpHogBj7ABpgOyZc65/UUOkKQFkoURsz4MM=
|
||||
mvdan.cc/gofumpt v0.4.0/go.mod h1:PljLOHDeZqgS8opHRKLzp2It2VBuSdteAgqUfzMTxlQ=
|
14
hack/tools/tools.go
Normal file
14
hack/tools/tools.go
Normal file
@ -0,0 +1,14 @@
|
||||
//go:build tools
|
||||
|
||||
/*
|
||||
Copyright (c) Edgeless Systems GmbH
|
||||
|
||||
SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
||||
package main
|
||||
|
||||
import (
|
||||
_ "github.com/katexochen/sh/v3/cmd/shfmt"
|
||||
_ "mvdan.cc/gofumpt"
|
||||
)
|
Loading…
Reference in New Issue
Block a user