Skip to content

Commit

Permalink
remove unsafeheader
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkingrei committed Oct 30, 2023
1 parent 0c331fc commit 0f81c57
Showing 1 changed file with 3 additions and 12 deletions.
15 changes: 3 additions & 12 deletions third_party/org_golang_x_sys-gazelle.patch
Original file line number Diff line number Diff line change
Expand Up @@ -503,7 +503,7 @@ diff -urN a/unix/internal/mkmerge/BUILD.bazel b/unix/internal/mkmerge/BUILD.baze
diff -urN a/windows/BUILD.bazel b/windows/BUILD.bazel
--- a/windows/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/windows/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,60 @@
@@ -0,0 +1,53 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
Expand Down Expand Up @@ -535,12 +535,6 @@ diff -urN a/windows/BUILD.bazel b/windows/BUILD.bazel
+ ],
+ importpath = "golang.org/x/sys/windows",
+ visibility = ["//visibility:public"],
+ deps = select({
+ "@io_bazel_rules_go//go/platform:windows": [
+ "//internal/unsafeheader",
+ ],
+ "//conditions:default": [],
+ }),
+)
+
+alias(
Expand All @@ -559,7 +553,6 @@ diff -urN a/windows/BUILD.bazel b/windows/BUILD.bazel
+ deps = select({
+ "@io_bazel_rules_go//go/platform:windows": [
+ ":windows",
+ "//internal/unsafeheader",
+ ],
+ "//conditions:default": [],
+ }),
Expand Down Expand Up @@ -629,7 +622,7 @@ diff -urN a/windows/registry/BUILD.bazel b/windows/registry/BUILD.bazel
diff -urN a/windows/svc/BUILD.bazel b/windows/svc/BUILD.bazel
--- a/windows/svc/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/windows/svc/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,36 @@
@@ -0,0 +1,35 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
Expand All @@ -642,7 +635,6 @@ diff -urN a/windows/svc/BUILD.bazel b/windows/svc/BUILD.bazel
+ visibility = ["//visibility:public"],
+ deps = select({
+ "@io_bazel_rules_go//go/platform:windows": [
+ "//internal/unsafeheader",
+ "//windows",
+ ],
+ "//conditions:default": [],
Expand Down Expand Up @@ -768,7 +760,7 @@ diff -urN a/windows/svc/example/BUILD.bazel b/windows/svc/example/BUILD.bazel
diff -urN a/windows/svc/mgr/BUILD.bazel b/windows/svc/mgr/BUILD.bazel
--- a/windows/svc/mgr/BUILD.bazel 1970-01-01 00:00:00.000000000 +0000
+++ b/windows/svc/mgr/BUILD.bazel 2000-01-01 00:00:00.000000000 -0000
@@ -0,0 +1,40 @@
@@ -0,0 +1,39 @@
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
Expand All @@ -783,7 +775,6 @@ diff -urN a/windows/svc/mgr/BUILD.bazel b/windows/svc/mgr/BUILD.bazel
+ visibility = ["//visibility:public"],
+ deps = select({
+ "@io_bazel_rules_go//go/platform:windows": [
+ "//internal/unsafeheader",
+ "//windows",
+ "//windows/svc",
+ ],
Expand Down

0 comments on commit 0f81c57

Please sign in to comment.