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
Arguments that have "sub-arguments" (eg. use_pypi and pypi_url) are still requested when the parent argument should have excluded it. This is something that should be fixed upstream, but we can account for this in the post project generation. See Upstream for details
The use_git argument is only half working. It initializes the repository with the files, but does not contain a valid git repository, due to the fact that the objects and refs subfolders are missing.
The issues are not necessarily linked, however, they both can be fixed within the post_gen_project.py hook. Alternatively, there are other ways of generating projects that existed before cookiecutter (eg. bash script: prompt for args, copy project structure based on args, sed, done), that may be worth exploring, since this isn't the first issue that's come up (eg. whitespace issues are painful due to the way Jinja works - which is fine for non-whitespace sensitive languages, but not Python).
Upstream
Because we would need to add a new type of argument inside of cookiecutter, we would need to modify the way that context is generated (generate.generate_context), but more importantly, we'd need to modify the prompt.prompt_for_config, which already has three different ways of handling argument types (str, list and dictionary).
The text was updated successfully, but these errors were encountered:
Description
There are two issues currently:
use_pypi
andpypi_url
) are still requested when the parent argument should have excluded it. This is something that should be fixed upstream, but we can account for this in the post project generation. See Upstream for detailsuse_git
argument is only half working. It initializes the repository with the files, but does not contain a valid git repository, due to the fact that the objects and refs subfolders are missing.The issues are not necessarily linked, however, they both can be fixed within the
post_gen_project.py
hook. Alternatively, there are other ways of generating projects that existed beforecookiecutter
(eg. bash script: prompt for args, copy project structure based on args, sed, done), that may be worth exploring, since this isn't the first issue that's come up (eg. whitespace issues are painful due to the way Jinja works - which is fine for non-whitespace sensitive languages, but not Python).Upstream
Because we would need to add a new type of argument inside of
cookiecutter
, we would need to modify the way that context is generated (generate.generate_context
), but more importantly, we'd need to modify theprompt.prompt_for_config
, which already has three different ways of handling argument types (str, list and dictionary).The text was updated successfully, but these errors were encountered: