Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(bazel): do not print current working directory #1028

Merged
merged 1 commit into from
Aug 19, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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