File tree 3 files changed +9
-7
lines changed
3 files changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,8 @@ build --tool_java_runtime_version=remotejdk_11
7
7
build --experimental_strict_java_deps=strict
8
8
build --explicit_java_test_deps
9
9
10
+ build --experimental_sibling_repository_layout
11
+
10
12
# Make sure we get something helpful when tests fail
11
13
test --verbose_failures
12
14
test --test_output=errors
Original file line number Diff line number Diff line change @@ -13,8 +13,12 @@ source "${RUNFILES_DIR:-/dev/null}/$f" 2>/dev/null || \
13
13
14
14
set -euo pipefail
15
15
# Workaround lack of rlocationpath, see comment on _BUILD_PIN in coursier.bzl
16
- readonly maven_unsorted_file=$( rlocation " ${1# external\/ } " )
17
- if [[ ! -e $maven_unsorted_file ]]; then (echo >&2 " Failed to locate $1 in runfiles" && exit 1) fi
16
+ maven_unsorted_file=$( rlocation " ${1# external\/ } " )
17
+ if [[ ! -e $maven_unsorted_file ]]; then
18
+ # for --experimental_sibling_repository_layout
19
+ maven_unsorted_file=" ${1# ..\/ } "
20
+ fi
21
+ if [[ ! -e $maven_unsorted_file ]]; then (echo >&2 " Failed to locate the unsorted_deps.json file: $1 " && exit 1) fi
18
22
readonly maven_install_json_loc={maven_install_location}
19
23
20
24
cp " $maven_unsorted_file " " $maven_install_json_loc "
Original file line number Diff line number Diff line change @@ -65,11 +65,7 @@ sh_binary(
65
65
name = "pin",
66
66
srcs = ["pin.sh"],
67
67
args = [
68
- # TODO: change to rlocationpath once rules_jvm_external drops support for Bazel <5.4.0
69
- # "$(rlocationpath :unsorted_deps.json)",
70
- # We can use execpath in the meantime, because we know this file is always a source file
71
- # in that external repo.
72
- "$(execpath :unsorted_deps.json)",
68
+ "$(rlocationpath :unsorted_deps.json)",
73
69
],
74
70
data = [
75
71
":unsorted_deps.json",
You can’t perform that action at this time.
0 commit comments