load("@rules_pkg//pkg:tar.bzl", "pkg_tar") load("//scripts:jekyll.bzl", "jekyll_build") # Required to move the file from the external repo's execroot location 12 changes: 12 additions & 0 deletions 12 WORKSPACE Original file line numberDiff line numberDiff line change @@ -14,3...
//github.com/bazelbuild/rules_nodejs/releases/download/5.8.3/rules_nodejs-5.8.3.tar.gz" ], ) load("@build_bazel_rules_nodejs//:repositories.bzl", "build_bazel_rules_nodejs_dependencies") build_bazel_rules_nodejs_dependencies() http_archive( name = "rules_pkg", sha256 = "62eeb544...
"//visibility:private" # 私有,仅同一package内可访问 "@my_repo//foo/bar:__pkg__" # 指定某些特定的Target可以访问,这里"__pkg__"是一种特殊语法,表示该package内所有Targets "//foo/bar:__subpackages__" # 指定某些特定的Target可以访问,这里"__subpackages__"是一种特殊语法,表示该package及其内部所...
对于 golang,您需要使用 rules_go 中的bazel pkg来解析您的运行文件。例如go_test( &...
$ bazel build main:hello_package ERROR: /home/topaz/Projects/BazelDemo/stage2/main/BUILD:8:8: //main:hello_package: no such attribute 'package_file_name' in '_real_pkg_tar' rule ERROR: Skipping 'main:hello_package': Error evaluating 'main:hello_package': error loading package 'main':...
world", srcs = ["hello-world.cc"], deps = [ ":hello-greet", "//lib:hello-time", ], ) //lib: load("@rules_cc//cc:defs.bzl", "cc_library") cc_library( name = "hello-time", srcs = ["hello-time.cc"], hdrs = ["hello-time.h"], visibility = ["//main:__pkg__"],...
Use rules_pkg to make the skylib tarball for a release. (#185) 5年前 internal_setup.bzl Run buildifier over the directory. (#235) 5年前 lib.bzl print->failand suppress the warning in another case. (#177) 5年前 skylark_library.bzl ...
"rules_pkg-0.2.4.tar.gz", # bazelbuild/rules_proto "97d8af4dc474595af3900dd85cb3a29ad28cc313.tar.gz", # protocolbuffers/protobuf "v3.11.3.tar.gz", ], dirname = "derived/distdir", sha256 = { "e0b0291b2c51fbe5a7cfa14473a1ae850f94f021.zip": "fe2e04f91ce8c59d...
("@cgrindel_rules_spm//spm:defs.bzl", "spm_pkg", "spm_repositories")spm_repositories(name="swift_pkgs",dependencies=[spm_pkg("https://github.com/apple/swift-syntax",name="SwiftSyntax",revision="swift-5.7-DEVELOPMENT-SNAPSHOT-2022-08-02-a",products=["SwiftSyntaxParser","SwiftSyntax...
load("@container_structure_test//:defs.bzl", "container_structure_test") load("@rules_oci//oci:defs.bzl", "oci_image") load("@rules_oci//oci:defs.bzl", "oci_tarball") load("@rules_pkg//pkg:pkg.bzl", "pkg_tar") ubuntu_user_and_group = "ubuntu:ubuntu" pkg_tar( name="source...