-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use external dependency with recursive links #2927
Comments
Pulling in @haxorz who knows everything about why is that IIRC. |
Another situation where this ruins things a bit: https://github.com/buildroot/buildroot uses recursive symlink to root dir to provide |
I'm hitting this issue trying to use an external Buildroot repository. Is it possible to fix Bazel so that it can handle self-referencing symlinks (e.g. foo/bar/baz points to foo)? |
The question for me is - what was the initial motivation for Bazel detecting recursive symlinks? They seem benign to me. Not sure why Bazel is defensively excluding them. |
Bazel does symlink expansion so that it can accurately track changes in files; therefore recusive symlinks pose a problem. |
See https://github.com/tweag/rules_haskell/blob/master/WORKSPACE#L248-L268. In Bazel,
The reason is that |
Closed for lack of activity. Please ping the reviewers to reopen if this is still a problem. |
Original issue - bazel-contrib/rules_go#424
I've found that I couldn't use a (non-Bazel) dependency with recursive links in codebase because of error:
There is a lot of CLI tools which do some useful work with files and they usually are part of build process. And authors of course write tests on cases with recursive links which are part of testdata stored in repo.
For instance there is a tool https://github.com/jteeuwen/go-bindata
So, if I have a WORKSPACE like:
and a BUILD file
try to build
:assets
will ends up with an error likeReal problem comes generated BUILD file (attempt to glob files in testdata
glob(["testdata/**"])
)The text was updated successfully, but these errors were encountered: