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

Unable to load user config #1086

Closed
eduardchai opened this issue Jul 24, 2018 · 1 comment
Closed

Unable to load user config #1086

eduardchai opened this issue Jul 24, 2018 · 1 comment

Comments

@eduardchai
Copy link

  • Cookiecutter version: 1.6.0
  • Template project url: -
  • Python version: Python 3.6.5
  • Operating System: MacOS 10.13.6

Description:

The user config does not seem to be loaded.

What I've run:

# custom-config.yaml
default_context:
	license: "Apache Software License 2.0"

# cookiecutter.json
{
    "license": ["MIT", "BSD-3", "GNU GPL v3.0", "Apache Software License 2.0"]
}

# Output
cookiecutter --config-file custom-config.yaml cookiecutter-template-url
Select license:
1 - MIT
2 - BSD-3
3 - GNU GPL v3.0
4 - Apache Software License 2.0
Choose from 1, 2, 3, 4 [1]:

I was expecting "Apache Software License 2.0" to be number 1 like the example in the documentation.

@hackebrot
Copy link
Member

Hi @eduardchai! 👋

I cannot reproduce this issue on my environment.

$ cookiecutter --version
Cookiecutter 1.6.0
$ cat mpl-license.yml
default_context:
    github_username: "hackebrot"
    license: "Mozilla Public License 2.0"
$ cookiecutter --config-file mpl-license.yml gh:pytest-dev/cookiecutter-pytest-plugin
full_name [Raphael Pierzina]:
email [raphael@hackebrot.de]:
github_username [hackebrot]:
plugin_name [foobar]: fox
module_name [fox]:
short_description [A simple plugin to use with pytest]:
version [0.1.0]:
pytest_version [3.5.0]: 3.6.4
Select docs_tool:
1 - mkdocs
2 - sphinx
3 - none
Choose from 1, 2, 3 [1]:
Select license:
1 - Mozilla Public License 2.0
2 - MIT
3 - BSD-3
4 - GNU GPL v3.0
5 - Apache Software License 2.0
Choose from 1, 2, 3, 4, 5 [1]:

Cookiecutter correctly changed Mozilla Public License 2.0 to be the first item in the list of license choices. I'm not sure how to help you other than asking you to check for typos in your config file 😟

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