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

Question: Symbolic links #1160

Open
jarethholt opened this issue Apr 1, 2019 · 1 comment
Open

Question: Symbolic links #1160

jarethholt opened this issue Apr 1, 2019 · 1 comment
Labels
enhancement This issue/PR relates to a feature request. question User questions
Milestone

Comments

@jarethholt
Copy link

  • Cookiecutter version: 1.6.0
  • Template project url: None
  • Python version: 3.6.7
  • Operating System: Ubuntu 18.04.2 LTS

Description:

I would like to use cookiecutter for managing experiments/simulations for a climate model, EC-Earth. Each experiment has a set of input and configuration files, so cookiecutter seems like a good option for initializing an experiment directory with generic (or empty) versions of all the files I know I have to fill in. However, a lot of these data files are the same for each experiment and can be quite large, so I would like to use symbolic links for those.

I have these files symbolically linked in my directory and ran cookiecutter, which successfully generated a new directory with the files I wanted. However, all of the symbolically-linked files have become copies; they have the same size and content as the originals (based on cmp) but not the same inode, so they aren't even hard links. I added these directories to "_copy_without_render" in the cookiecutter.json file, and didn't see a change.

Is there a way to preserve symbolic links using cookiecutter? Would this have to be done with a pre/post-generate hook? Would I have to remove these files from my cookiecutter directory then, or is there a way to suppress copying these files (so that I can keep track of which files need to be linked and where)?

@insspb insspb added question User questions enhancement This issue/PR relates to a feature request. labels Dec 22, 2019
@insspb insspb added this to To do in 2.0.0 Release via automation Dec 22, 2019
@insspb insspb added the 2.0.0 label Dec 22, 2019
@insspb
Copy link
Member

insspb commented Dec 22, 2019

At this moment cookiecutter makes copies.
This issue goes as an enhancement to 2.0.0 release, with key "Respect links"
But I am not sure that this will be implemented.

@ssbarnea ssbarnea added this to the 2.0.0 milestone Mar 30, 2020
@ssbarnea ssbarnea removed the 2.0.0 label Mar 30, 2020
This was linked to pull requests May 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement This issue/PR relates to a feature request. question User questions
Projects
2.0.0 Release
  
To do
3 participants