Remove sh_binary usage for Bazel 8 friendliness (#550)

We can use our own native_binary instead
This commit is contained in:
Alexandre Rostovtsev 2024-10-28 12:46:15 -04:00 committed by GitHub
parent 56b235e700
commit 6edf03b195
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 2 deletions

View File

@ -24,6 +24,7 @@ https://github.com/aspect-build/bazel-lib/blob/main/docs/docs.md
""" """
load("@bazel_skylib//rules:diff_test.bzl", "diff_test") load("@bazel_skylib//rules:diff_test.bzl", "diff_test")
load("@bazel_skylib//rules:native_binary.bzl", "native_binary")
load("@bazel_skylib//rules:write_file.bzl", "write_file") load("@bazel_skylib//rules:write_file.bzl", "write_file")
load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc") load("@io_bazel_stardoc//stardoc:stardoc.bzl", "stardoc")
@ -102,10 +103,11 @@ def update_docs(
name = "gen_" + name, name = "gen_" + name,
out = update_script, out = update_script,
content = content, content = content,
is_executable = True,
) )
native.sh_binary( native_binary(
name = name, name = name,
srcs = [update_script], src = update_script,
data = data, data = data,
) )