diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java index d01c085945219d..e1c53456223812 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkBaseExternalContext.java @@ -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()) diff --git a/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContext.java b/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContext.java index 3f3d271153d801..2a8b59d80e5d25 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContext.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/repository/starlark/StarlarkRepositoryContext.java @@ -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())