aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts/packages/BUILD
diff options
context:
space:
mode:
authorGravatar Klaus Aehlig <aehlig@google.com>2016-09-20 14:45:06 +0000
committerGravatar Laszlo Csomor <laszlocsomor@google.com>2016-09-21 07:05:55 +0000
commit96d46280bc5a4803ba2242a4ad16939f85a3b212 (patch)
treeba4be058b0032956ef8d8e37d25fcd042297fb8b /scripts/packages/BUILD
parent6e2142af1c069a35a942b257e368ab05d04401f1 (diff)
Reintroduce .bazelrc and set --action_env defaults
Shipping a .bazelrc was removed in 009b48bcfaf4ebb17f9ab03bea9036cfa3c12ff0. However, as per our "Specifying environment variables for actions" design document, we want to ship a global rc file specifying the common environment variables to be inherited. So revert that change and add the desired entries to the global bazelrc file we're shipping. -- Change-Id: Ib763677a951e1264ae92954df9b831374594d8b7 Reviewed-on: https://bazel-review.googlesource.com/#/c/6113 MOS_MIGRATED_REVID=133704608
Diffstat (limited to 'scripts/packages/BUILD')
-rw-r--r--scripts/packages/BUILD9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts/packages/BUILD b/scripts/packages/BUILD
index ef3fe22f90..5bce69d16f 100644
--- a/scripts/packages/BUILD
+++ b/scripts/packages/BUILD
@@ -92,6 +92,14 @@ pkg_tar(
strip_prefix = ".",
)
+pkg_tar(
+ name = "bazel-rc",
+ files = ["debian/bazel.bazelrc"],
+ mode = "0644",
+ package_dir = "/etc",
+ strip_prefix = "debian",
+)
+
genrule(
name = "rename-bazel-completion",
srcs = ["//scripts:bash_completion"],
@@ -112,6 +120,7 @@ pkg_tar(
deps = [
":bazel-bin",
":bazel-completion",
+ ":bazel-rc",
],
)