Skip to content

Commit

Permalink
Fix paths-to-replace's BUILD_WORKSPACE_DIRECTORY
Browse files Browse the repository at this point in the history
This was accidentally set to working dir.

PiperOrigin-RevId: 633945840
Change-Id: Iab8ca88d155a542078f3a528cc815db4a4ac5452
  • Loading branch information
michajlo authored and copybara-github committed May 15, 2024
1 parent 0c60c38 commit fc3d200
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -542,8 +542,7 @@ private static ImmutableList<PathToReplace> getPathsToReplace(
.add(
CommandProtos.PathToReplace.newBuilder()
.setType(PathToReplace.Type.BUILD_WORKSPACE_DIRECTORY)
.setValue(
ByteString.copyFrom(env.getWorkingDirectory().getPathString(), ISO_8859_1))
.setValue(ByteString.copyFrom(env.getWorkspace().getPathString(), ISO_8859_1))
.build());
if (isTestTarget) {
pathsToReplace.add(
Expand Down

0 comments on commit fc3d200

Please sign in to comment.