From 5b9866df69144deb4f4d1e0c434dc531f62d3975 Mon Sep 17 00:00:00 2001 From: Bor Kae Hwang Date: Thu, 1 Aug 2019 12:50:10 -0600 Subject: [PATCH] Prefix workspace name while referencing json (#209) --- private/pin.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/private/pin.sh b/private/pin.sh index 0ef7eff23..7cf3c4280 100644 --- a/private/pin.sh +++ b/private/pin.sh @@ -2,6 +2,8 @@ set -euo pipefail readonly maven_install_json_loc=$BUILD_WORKSPACE_DIRECTORY/{repository_name}_install.json +readonly execution_root=$(bazel info execution_root) +readonly workspace_name=$(basename $execution_root) cat <<"RULES_JVM_EXTERNAL_EOF" | python -m json.tool > $maven_install_json_loc {dependency_tree_json} RULES_JVM_EXTERNAL_EOF @@ -19,7 +21,7 @@ cat <