-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
Symlinks not generated from templates #776
Labels
Comments
I am experiencing similar behavior, I have a template that has a symlinked directory in it, I would like the directory and its contents to end up in the project that cargo-generate produces. I have tried adding explicit
|
x37v
added a commit
to Cycling74/median
that referenced
this issue
Dec 2, 2022
symlinks don't work though: cargo-generate/cargo-generate#776
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
Symlinks are not copied if they exist in a template, or are generated from a rhai script. I've tried both the symlink being present in the template, and generating one with rhai. The behavior with rhai is a bit different, as I see output indicating that the file was copied(i.ie
[ 6/16] Done: path/to/symlink
), while a symlink file present in the template does not.Relevant Rhai snippet:
At first I thought they might be failing since I'm creating a link outside of the template directory, but even creating links local to the template do not seem to copy properly.
make sure you
rustup update
cargo install cargo-generate
To Reproduce
Steps to reproduce the behavior:
cargo generate -a -p template_dir
- with symlink present in templateExpected behavior
Symlinks copied to template output
Desktop (please complete the following information):
rustc --version
: 1.65cargo generate --version
: 0.16.0The text was updated successfully, but these errors were encountered: