mirror of
https://github.com/hanzoai/visor.git
synced 2026-09-24 17:04:14 +00:00
This creates a `go_template` that can generate a `go_library` rule which extracts a compressed binary to a temporary location, then executes it. This is useful to implement `runsc` subcommands without requiring that these subcommands' dependencies are linked into the main `runsc` binary. PiperOrigin-RevId: 557270682
32 lines
574 B
Python
32 lines
574 B
Python
load("//tools:defs.bzl", "bzl_library", "go_binary")
|
|
load("//tools/go_generics:defs.bzl", "go_template")
|
|
|
|
package(
|
|
default_applicable_licenses = ["//:license"],
|
|
licenses = ["notice"],
|
|
)
|
|
|
|
bzl_library(
|
|
name = "defs_bzl",
|
|
srcs = ["defs.bzl"],
|
|
visibility = [
|
|
"//:sandbox",
|
|
],
|
|
)
|
|
|
|
go_template(
|
|
name = "embeddedbinary_template",
|
|
srcs = ["embeddedbinary_template.go"],
|
|
visibility = [
|
|
"//:sandbox",
|
|
],
|
|
)
|
|
|
|
go_binary(
|
|
name = "flatecompress",
|
|
srcs = ["flatecompress.go"],
|
|
visibility = [
|
|
"//:sandbox",
|
|
],
|
|
)
|