atlassian / bazel-tools

Reusable bits for Bazel
Apache License 2.0
113 stars 36 forks source link

Symlink cycle #57

Open macduy opened 5 years ago

macduy commented 5 years ago

It looks like this line causes issues with newer versions of Bazel (I'm using 0.24.1):

https://github.com/atlassian/bazel-tools/blob/c7e0fd9070f04f88bf671e57f101aa0877a9b5c8/goimports/runner.bash.template#L11

When running e.g. bazel build //... I get:

ERROR: infinite symlink expansion detected
[start of symlink chain]
<WORKSPACE ROOT>/bazel-<WORKSPACE DIRECTORY>/bazel-<WORKSPACE DIRECTORY>
/private/var/tmp/_bazel_<USERNAM>/<HASH>/execroot/__main__/bazel-<WORKSPACE DIRECTORY>
<WORKSPACE ROOT>bazel-<WORKSPACE DIRECTORY>
[end of symlink chain]
adam-rocska commented 5 years ago

It'd be nice to have this fixed 😅