2022-07-07 20:11:50 +00:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
|
|
|
|
go_library(
|
|
|
|
name = "metadata",
|
2024-02-24 00:34:55 +00:00
|
|
|
srcs = [
|
|
|
|
"metadata.go",
|
|
|
|
"retry.go",
|
|
|
|
"retry_linux.go",
|
2024-10-16 10:54:40 +00:00
|
|
|
"syscheck.go",
|
|
|
|
"syscheck_linux.go",
|
|
|
|
"syscheck_windows.go",
|
2024-02-24 00:34:55 +00:00
|
|
|
],
|
2022-07-07 20:11:50 +00:00
|
|
|
importmap = "peridot.resf.org/vendor/cloud.google.com/go/compute/metadata",
|
|
|
|
importpath = "cloud.google.com/go/compute/metadata",
|
|
|
|
visibility = ["//visibility:public"],
|
2024-10-16 10:54:40 +00:00
|
|
|
deps = select({
|
|
|
|
"@io_bazel_rules_go//go/platform:windows": [
|
|
|
|
"//vendor/golang.org/x/sys/windows/registry",
|
|
|
|
],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2022-07-07 20:11:50 +00:00
|
|
|
)
|