diff options
author | pcloudy <pcloudy@google.com> | 2017-08-03 09:28:03 +0200 |
---|---|---|
committer | Dmitry Lomov <dslomov@google.com> | 2017-08-03 12:10:08 +0200 |
commit | d4fa181f8607c35230b7efa1ce94188b51508962 (patch) | |
tree | 440fcb78a6460377a002b0b911f86335c77ab57f | |
parent | 781b23a6e161d2d32e0a1d8fd699a7a0bda113a1 (diff) |
Use getExecPathString when getting bash_main_file
Fix https://github.com/bazelbuild/bazel/issues/3491
RELNOTES: None
PiperOrigin-RevId: 164089270
-rw-r--r-- | src/main/java/com/google/devtools/build/lib/bazel/rules/sh/ShBinary.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/ShBinary.java b/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/ShBinary.java index 47a15dec3f..0b3d37dfd3 100644 --- a/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/ShBinary.java +++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/sh/ShBinary.java @@ -151,7 +151,7 @@ public class ShBinary implements RuleConfiguredTargetFactory { .getFragment(BazelConfiguration.class) .getShellExecutable() .getPathString()); - dataSize += writeLaunchInfo(launchInfo, "bash_main_file", mainFile.getRunfilesPathString()); + dataSize += writeLaunchInfo(launchInfo, "bash_main_file", mainFile.getExecPathString()); ByteBuffer buffer = ByteBuffer.allocate(Long.BYTES); // All Windows versions are little endian. |