Skip to content

Commit

Permalink
Only show the base name of archives being extracted.
Browse files Browse the repository at this point in the history
Most of the archive path is a long absolute path into Bazel internal directories, which is not interesting to look at.

Closes #16363.

PiperOrigin-RevId: 478799955
Change-Id: I047bdc85e9100af74a6854893c5befea17e673b1
  • Loading branch information
benjaminp authored and copybara-github committed Oct 4, 2022
1 parent 0e1d3ee commit a665f8f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,8 @@ public StructImpl downloadAndExtract(
Profiler.instance().profile("extracting: " + getIdentifyingStringForLogging())) {
env.getListener()
.post(
new ExtractProgress(outputPath.getPath().toString(), "Extracting " + downloadedPath));
new ExtractProgress(
outputPath.getPath().toString(), "Extracting " + downloadedPath.getBaseName()));
DecompressorValue.decompress(
DecompressorDescriptor.builder()
.setContext(getIdentifyingStringForLogging())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ public void extract(
env.getListener()
.post(
new ExtractProgress(
outputPath.getPath().toString(), "Extracting " + archivePath.getPath()));
outputPath.getPath().toString(), "Extracting " + archivePath.getBasename()));
DecompressorValue.decompress(
DecompressorDescriptor.builder()
.setContext(getIdentifyingStringForLogging())
Expand Down

0 comments on commit a665f8f

Please sign in to comment.