Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
We had to update packaging rules in bazel build recently. The change was supposed to be backward-compatible, but the way synth was unpacking the tar made it backward-incompatible.
Specifically, previously the final
.tar.gz
file produced by bazel packaged files in the following format (i.e. this is how the output oftar -tvf google-cloud-oslogin-v1-java.tar.gz
would look like, using oslogin as an example):Witht the recent change the output of the same build target will look like:
I.e. they should be identical essentially, because the
./
prefix in the first example is a no-op component in the path when you unpack tar normally. But it still counts as a "component" if"--strip-component=1"
command line arg is used.Due to technical reasons adding back the
./
prefix in bazel is difficult and would make the rules inconsistent, adding it to synthtool instead (since the bug is essentially reproducible only if--strip-component
arg is used).