load("@rules_go//go:def.bzl", "go_binary", "go_library", "go_cross_binary") load("@gazelle//:def.bzl", "gazelle") gazelle(name = "gazelle") go_library( name = "bingbong_lib", srcs = ["main.go"], importpath = "bingbong", visibility = ["//visibility:private"], deps = ["@org_uber_go_zap//:zap"], ) go_binary( name = "bingbong", embed = [":bingbong_lib"], visibility = ["//visibility:public"], ) platform( name = "macos", constraint_values = [ "@platforms//os:osx", "@platforms//cpu:x86_64", ], ) go_cross_binary( name = "darwin_binary", platform = ":macos", sdk_version = "1.21.0", target = "bingbong", )