aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Yue Gan <yueg@google.com>2016-08-10 13:45:55 +0000
committerGravatar Yue Gan <yueg@google.com>2016-08-10 13:55:55 +0000
commit58ee85afcab07374dabc5493c780cbe3369b644f (patch)
tree45ce8a4413ecd3b30e9471a9954eb34c6dd71aa5 /src
parent124bd0a7d32c28cc53ef8d8beab4e422d5ee9c42 (diff)
Don't follow symlink when looking for python module space, since it breaks sandbox on Mac and is also not necessary.
Fixes #1625. -- MOS_MIGRATED_REVID=129860300
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt
index ac0b8bd337..d061accd90 100644
--- a/src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt
+++ b/src/main/java/com/google/devtools/build/lib/bazel/rules/python/stub_template.txt
@@ -59,13 +59,6 @@ def FindModuleSpace():
if os.path.isdir(module_space):
break
- # Follow a symlink, try again?
- if os.path.islink(stub_filename):
- link = os.readlink(stub_filename)
- # Absolutize
- stub_filename = os.path.join(os.path.dirname(stub_filename), link)
- continue
-
runfiles_pattern = "(.*\.runfiles)/.*"
if IsWindows():
runfiles_pattern = "(.*\.runfiles)\\.*"