From 17c42bd105224fdb6bac2565e728ec5532da83bb Mon Sep 17 00:00:00 2001 From: Sasha Smundak Date: Fri, 27 Dec 2019 15:29:05 -0800 Subject: [PATCH] Use absolute path for output. Test: manual Bug: 137798757 Change-Id: If2e9c31e1ff523914f5f2cecf8975e1da91c03a7 --- build_kzip.bash | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build_kzip.bash b/build_kzip.bash index ccd6bad02..02b346d39 100755 --- a/build_kzip.bash +++ b/build_kzip.bash @@ -19,12 +19,13 @@ declare -r out="${OUT_DIR:-out}" # Build extraction files for C++ and Java. Build `merge_zips` which we use later. build/soong/soong_ui.bash --build-mode --all-modules --dir=$PWD -k merge_zips xref_cxx xref_java #Build extraction file for Go files in build/soong directory. +declare -r abspath_out=$(realpath "${out}") (cd build/soong; ../../prebuilts/build-tools/linux-x86/bin/go_extractor \ --goroot="${PWD}/../../prebuilts/go/linux-x86" \ --rules=vnames.go.json \ --canonicalize_package_corpus \ - --output "${out}/soong/all.go.kzip" \ + --output "${abspath_out}/soong/all.go.kzip" \ ./... ) declare -r kzip_count=$(find "$out" -name '*.kzip' | wc -l)