Skip to content

Update all cookiecutter.json files to add _copy_without_render#258

Merged
hawflau merged 1 commit intoaws:masterfrom
hawflau:copy-without-render
Jun 16, 2022
Merged

Update all cookiecutter.json files to add _copy_without_render#258
hawflau merged 1 commit intoaws:masterfrom
hawflau:copy-without-render

Conversation

@hawflau
Copy link
Contributor

@hawflau hawflau commented Jun 16, 2022

Issue #, if available:
The newline handling logic introduced in cookiecutter v2+ broke SAM CLI as we tried to bump it in lieu of a CVE in cookiecutter (See SAM CLI PR). The particular file breaking cookiecutter is .gitignore, in which Python detects multiple linebreak characters, instead of single.

We need to fix this so we can bump the cookiecutter version in SAM CLI.

Description of changes:
As the .gitignore files don't really need to be rendered by cookiecutter, we add the _copy_without_render config into the cookiecutter.json files, so cookiecutter in SAM CLI will skip rendering the .gitignore files.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

"architectures": {
"value": []
}
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unrelated to this PR but what do we normally do with deprecated runtime templates?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We just remove the entire directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants