Skip to content

Commit

Permalink
fix(bazel): do not print current working directory (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-fenster authored Aug 19, 2022
1 parent 7064f4c commit 5d94f1d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rules_java_gapic/java_gapic_pkg.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _gapic_pkg_tar_impl(ctx):
cd {package_dir_path}/{tar_cd_suffix}
tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
cd -
cd - > /dev/null
mv {package_dir_path}/{package_dir}.tar.gz {pkg}
rm -rf {package_dir_path}
""".format(
Expand Down Expand Up @@ -213,7 +213,7 @@ def _java_gapic_build_configs_pkg_impl(ctx):
chmod 644 {package_dir_path}/*
cd {package_dir_path}/{tar_cd_suffix}
tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
cd -
cd - > /dev/null
mv {package_dir_path}/{package_dir}.tar.gz {pkg}
""".format(
templates = " ".join(["'%s'" % f.path for f in expanded_templates]),
Expand Down Expand Up @@ -286,7 +286,7 @@ def _java_gapic_srcs_pkg_impl(ctx):
done
cd {package_dir_path}/{tar_cd_suffix}
tar -zchpf {tar_prefix}/{package_dir}.tar.gz {tar_prefix}/*
cd -
cd - > /dev/null
mv {package_dir_path}/{package_dir}.tar.gz {pkg}
""".format(
srcs = " ".join(["'%s'" % f.path for f in srcs]),
Expand Down

0 comments on commit 5d94f1d

Please sign in to comment.