Skip to content
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

Don't make recursive symlink #754

Open
Timmmm opened this issue Mar 23, 2021 · 1 comment
Open

Don't make recursive symlink #754

Timmmm opened this issue Mar 23, 2021 · 1 comment

Comments

@Timmmm
Copy link

Timmmm commented Mar 23, 2021

In the cxx build process it makes a recursive symlink to the crate root:

~ ls -l /Users/timh/workspace/libxyz/crates/core_logic/target/debug/build/core_logic-2813b45ab0a66cc3/out/cxxbridge/crate/core_logic/target/debug/build/core_logic-2813b45ab0a66cc3/out/cxxbridge/crate/
total 0
lrwxr-xr-x  1 timh  staff  69 24 Feb 13:24 core_logic -> /Users/timh/workspace/libxyz/crates/core_logic

It would be good if that could be avoided - lots of code just blindly walks trees following symlinks to infinity. It's their fault but it's still annoying (example).

Also I assume there is some alternative that doesn't involve symlinks otherwise how does this crate work on Windows?

It would be nice if this symlink didn't exist.

@casimcdaniels
Copy link

casimcdaniels commented Sep 16, 2022

Ditto. Just ran into this issue with a C# project where Visual Studio walks the tree forever and throws an exception on solution build. This effectively makes the build.rs approach unfeasible for me. I can get around by killing the symlink as a post cargo build step, but eh...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants