From 0e0ef4c705deaf029313b1601b2757886c058c4a Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Thu, 1 Aug 2024 17:27:10 +0200 Subject: [PATCH 1/2] Add QNX and OSX to known platforms --- rule/platform.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rule/platform.go b/rule/platform.go index fffac4799..bfeeeeae6 100644 --- a/rule/platform.go +++ b/rule/platform.go @@ -87,6 +87,14 @@ var KnownPlatforms = []Platform{ {"openbsd", "amd64"}, {"openbsd", "arm"}, {"openbsd", "arm64"}, + {"osx", "386"}, + {"osx", "amd64"}, + {"osx", "arm"}, + {"osx", "arm64"}, + {"qnx", "386"}, + {"qnx", "amd64"}, + {"qnx", "arm"}, + {"qnx", "arm64"}, {"plan9", "386"}, {"plan9", "amd64"}, {"plan9", "arm"}, From 4b947455098a8e21ca20b856427e660169342103 Mon Sep 17 00:00:00 2001 From: Markus Hofbauer Date: Tue, 6 Aug 2024 13:41:42 +0200 Subject: [PATCH 2/2] add platforms to language test --- language/go/testdata/cgolib_with_build_tags/BUILD.want | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/language/go/testdata/cgolib_with_build_tags/BUILD.want b/language/go/testdata/cgolib_with_build_tags/BUILD.want index 5a7c81ebe..4e8ada89e 100644 --- a/language/go/testdata/cgolib_with_build_tags/BUILD.want +++ b/language/go/testdata/cgolib_with_build_tags/BUILD.want @@ -49,9 +49,15 @@ go_library( "@io_bazel_rules_go//go/platform:openbsd": [ "example.com/repo/lib/deep", ], + "@io_bazel_rules_go//go/platform:osx": [ + "example.com/repo/lib/deep", + ], "@io_bazel_rules_go//go/platform:plan9": [ "example.com/repo/lib/deep", ], + "@io_bazel_rules_go//go/platform:qnx": [ + "example.com/repo/lib/deep", + ], "@io_bazel_rules_go//go/platform:solaris": [ "example.com/repo/lib/deep", ],