You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
I'm on the latest rust version rustup update
I'm on the latest cargo-generate version cargo install cargo-generate
To Reproduce
Steps to reproduce the behavior:
cargo generate -a -p template_dir - with symlink present in template
Expected behavior
Symlinks copied to template output
Desktop (please complete the following information):
OS: Fedora
Version: 36
Build tools: cargo
Shell: zsh
rustc --version: 1.65
cargo generate --version: 0.16.0
The text was updated successfully, but these errors were encountered:
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 include entries for each of the files in the symlinked folder, an explicit include for the folder itself, nothing seems to work. I also don't get a warning when I generate a project from the template.
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: