hack/update-bazel.sh

This commit is contained in:
Benjamin Elder
2021-02-28 14:17:42 -08:00
parent 95e4a6bcda
commit 56e092e382
3344 changed files with 0 additions and 147371 deletions

View File

@@ -1,110 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"build_info.go",
"build_info_pre_1.12.go",
"collector.go",
"counter.go",
"desc.go",
"doc.go",
"expvar_collector.go",
"fnv.go",
"gauge.go",
"go_collector.go",
"histogram.go",
"labels.go",
"metric.go",
"observer.go",
"process_collector.go",
"process_collector_other.go",
"process_collector_windows.go",
"registry.go",
"summary.go",
"timer.go",
"untyped.go",
"value.go",
"vec.go",
"wrap.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus",
importpath = "github.com/prometheus/client_golang/prometheus",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/beorn7/perks/quantile:go_default_library",
"//vendor/github.com/cespare/xxhash/v2:go_default_library",
"//vendor/github.com/golang/protobuf/proto:go_default_library",
"//vendor/github.com/golang/protobuf/ptypes:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus/internal:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
"//vendor/github.com/prometheus/common/model:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:aix": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:android": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:darwin": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:illumos": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:ios": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:js": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:nacl": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:plan9": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/github.com/prometheus/procfs:go_default_library",
],
"@io_bazel_rules_go//go/platform:windows": [
"//vendor/golang.org/x/sys/windows:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//vendor/github.com/prometheus/client_golang/prometheus/internal:all-srcs",
"//vendor/github.com/prometheus/client_golang/prometheus/promhttp:all-srcs",
"//vendor/github.com/prometheus/client_golang/prometheus/testutil:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,24 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["metric.go"],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/internal",
importpath = "github.com/prometheus/client_golang/prometheus/internal",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = ["//vendor/github.com/prometheus/client_model/go:go_default_library"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,33 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"delegator.go",
"http.go",
"instrument_client.go",
"instrument_server.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/promhttp",
importpath = "github.com/prometheus/client_golang/prometheus/promhttp",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,36 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"lint.go",
"testutil.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/testutil",
importpath = "github.com/prometheus/client_golang/prometheus/testutil",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/prometheus/client_golang/prometheus:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus/internal:go_default_library",
"//vendor/github.com/prometheus/client_golang/prometheus/testutil/promlint:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//vendor/github.com/prometheus/client_golang/prometheus/testutil/promlint:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,27 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["promlint.go"],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_golang/prometheus/testutil/promlint",
importpath = "github.com/prometheus/client_golang/prometheus/testutil/promlint",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/common/expfmt:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,27 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["metrics.pb.go"],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/client_model/go",
importpath = "github.com/prometheus/client_model/go",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/golang/protobuf/proto:go_default_library",
"//vendor/github.com/golang/protobuf/ptypes/timestamp:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,38 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"decode.go",
"encode.go",
"expfmt.go",
"openmetrics_create.go",
"text_create.go",
"text_parse.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/common/expfmt",
importpath = "github.com/prometheus/common/expfmt",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/golang/protobuf/proto:go_default_library",
"//vendor/github.com/golang/protobuf/ptypes:go_default_library",
"//vendor/github.com/matttproud/golang_protobuf_extensions/pbutil:go_default_library",
"//vendor/github.com/prometheus/client_model/go:go_default_library",
"//vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg:go_default_library",
"//vendor/github.com/prometheus/common/model:go_default_library",
],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,23 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["autoneg.go"],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg",
importpath = "github.com/prometheus/common/internal/bitbucket.org/ww/goautoneg",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,35 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"alert.go",
"fingerprinting.go",
"fnv.go",
"labels.go",
"labelset.go",
"metric.go",
"model.go",
"signature.go",
"silence.go",
"time.go",
"value.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/common/model",
importpath = "github.com/prometheus/common/model",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,107 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"arp.go",
"buddyinfo.go",
"cpuinfo.go",
"cpuinfo_armx.go",
"cpuinfo_mipsx.go",
"cpuinfo_ppcx.go",
"cpuinfo_s390x.go",
"cpuinfo_x86.go",
"crypto.go",
"doc.go",
"fs.go",
"fscache.go",
"ipvs.go",
"kernel_random.go",
"loadavg.go",
"mdstat.go",
"meminfo.go",
"mountinfo.go",
"mountstats.go",
"net_conntrackstat.go",
"net_dev.go",
"net_sockstat.go",
"net_softnet.go",
"net_udp.go",
"net_unix.go",
"proc.go",
"proc_cgroup.go",
"proc_environ.go",
"proc_fdinfo.go",
"proc_io.go",
"proc_limits.go",
"proc_maps.go",
"proc_ns.go",
"proc_psi.go",
"proc_smaps.go",
"proc_stat.go",
"proc_status.go",
"schedstat.go",
"stat.go",
"swaps.go",
"vm.go",
"xfrm.go",
"zoneinfo.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/procfs",
importpath = "github.com/prometheus/procfs",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
deps = [
"//vendor/github.com/prometheus/procfs/internal/fs:go_default_library",
"//vendor/github.com/prometheus/procfs/internal/util:go_default_library",
] + select({
"@io_bazel_rules_go//go/platform:aix": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:android": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:darwin": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:dragonfly": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:freebsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:ios": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:linux": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:netbsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:openbsd": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"@io_bazel_rules_go//go/platform:solaris": [
"//vendor/golang.org/x/sys/unix:go_default_library",
],
"//conditions:default": [],
}),
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [
":package-srcs",
"//vendor/github.com/prometheus/procfs/internal/fs:all-srcs",
"//vendor/github.com/prometheus/procfs/internal/util:all-srcs",
],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,23 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = ["fs.go"],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/procfs/internal/fs",
importpath = "github.com/prometheus/procfs/internal/fs",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)

View File

@@ -1,29 +0,0 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
go_library(
name = "go_default_library",
srcs = [
"parse.go",
"readfile.go",
"sysreadfile.go",
"sysreadfile_compat.go",
"valueparser.go",
],
importmap = "k8s.io/kubernetes/vendor/github.com/prometheus/procfs/internal/util",
importpath = "github.com/prometheus/procfs/internal/util",
visibility = ["//build/visible_to:vendor_githubcom_prometheus_CONSUMERS"],
)
filegroup(
name = "package-srcs",
srcs = glob(["**"]),
tags = ["automanaged"],
visibility = ["//visibility:private"],
)
filegroup(
name = "all-srcs",
srcs = [":package-srcs"],
tags = ["automanaged"],
visibility = ["//visibility:public"],
)