Files
gVisor bot 1f79e1b26f Prepare for go.dev/cl/652276
Upstream Go CL https://go.dev/cl/652276 removes an unused field from
runtime.gobuf. This CL prepares for this change.

This CL also simplifies the build constraints in the hosttid files:
- Remove legacy '// +build' constraint syntax
- Remove explicit GOARCH matching. The GOARCH is in the filename

PiperOrigin-RevId: 733382770
2025-03-04 10:41:09 -08:00

31 lines
567 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "goid",
srcs = [
"goid.go",
"goid_122_amd64.s",
"goid_122_arm64.s",
"goid_123_amd64.s",
"goid_123_arm64.s",
"goid_125_amd64.s",
"goid_125_arm64.s",
],
stateify = False,
visibility = ["//visibility:public"],
)
go_test(
name = "goid_test",
size = "small",
srcs = [
"goid_test.go",
],
library = ":goid",
)