Skip to content

Commit c81f864

Browse files
committed
Add .keep extension - workaround for copier.template.DEFAULT_EXCLUDE
1 parent 562bd2e commit c81f864

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

copier.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ _envops:
1212
variable_end_string: "}}"
1313
variable_start_string: "{{"
1414

15+
_tasks:
16+
- "[ ! -f copier.yml.keep ] || mv copier.yml.keep copier.yml"
17+
1518
# TEMPLATE QUESTIONS
1619
generator:
1720
type: str
File renamed without changes.

template/update.sh.jinja

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ set -o errexit
1313
set -o nounset
1414
set -o pipefail
1515

16-
copier -x template/** -x copier.yml -x *.py -x CHANGELOG.md \
16+
copier -x template/** -x copier.yml.keep -x *.py -x CHANGELOG.md \
1717
"${@}" \
1818
-d generator={{generator_name}} \
1919
-d nix={{nix}} \

0 commit comments

Comments
 (0)