Releases: copier-org/copier
Releases · copier-org/copier
v9.2.0 (2024-04-04)
Feat
- tasks: add support for skipping tasks (#1561)
- add support for validating multi-select choice answers
Fix
- ignore empty YAML documents in
copier.yml
- preserve choices order in answers to multi-select choice questions
- exclude: apply exclude matcher to rendered path
Refactor
- drop
pyyaml-include
dependency and reimplement relevant features
Perf
- apply
PERF
lint rules fixes (#1556)
v9.1.1 (2024-01-16)
Fix
- don't fail in systems with windows 1252 encoding (probably)
- skip excluded paths before rendering
v9.1.0 (2023-11-27)
Feat
- Conflicts on updates now appear as git merge conflicts, also on VSCode
- choices: support questionary checkbox for multiple choices using
multiselect: true
.
Fix
v9.0.1 (2023-10-30)
Fix
- don't produce output when imported with
$FORCE_COLOR=1
env
v9.0.0 (2023-10-22)
v9.0.0 (2023-10-22)
BREAKING CHANGE
- Changes the return code for unsafe template error from
2 to 4 to avoid return code collision with Plumbum'sSwitchError
type
errors which use return code 2.
Feat
Fix
- vcs: prevent local clone from being stuck by gpg prompts (#1360)
- pydantic: compatible with 2.4+, solving
FieldValidationInfo
warning (#1342) - fix answer validation for
type: str
questions - version guess from tags that don't start with
v
, but are still PEP440 compliant (#1048) - cli: use return code 4 for unsafe template error
- nix: detect build version appropriately
v8.3.0 (2023-09-05)
Feat
- add
-A
as an alias for--skip-answered
, and support it inrecopy
too - add
--skip-answered
flag to avoid repeating recorded answers
Fix
- recopy: never clone old template (even less if it's just for cleanup)
v8.2.0 (2023-08-28)
Feat
- release on FlakeHub.com too
- add support for pre-update and post-update messages (#1288)
- add support for pre-copy and post-copy messages
Fix
- do not immediately fail if git is not available
- provide more clarification in unsafe error message (#1280)
- clean up tmp dir
- don't lie about updated files
- require default value for secret question
- fix answer validation against conditional choices with duplicate values
Refactor
- drop support for Python 3.7 (#1252)
v8.1.0 (2023-07-10)
Feat
- add support for computed values via skipped questions (#1220)
- add
--trust
as a less scary alternative to--UNSAFE
(#1179) - add OS identifier to render context
Fix
- pydantic: add upper dependency bound to fix unlocked installations
Refactor
- request answers imperatively instead of implicitly via impure property
v8.0.0 (2023-06-04)
BREAKING CHANGE
- Updates will overwrite existing files always. If you need to select only some files, just use
git mergetool
orgit difftool
after updating. - Flag
--overwrite/-w
disappeared fromcopier update
. It is now implicit. - To update via API,
overwrite=True
is now required. - The default update conflict mode is now
inline
instead ofrej
. - By default, updates now consider 3 lines of context instead of just 1.
- All CLI calls to Copier must now include the subcommand as the 1st argument. For example,
copier
must become nowcopier update
; alsocopier ./tpl ./dst
must becomecopier copy ./tpl ./dst
. - All flags must go after the subcommand now. For example,
copier -r HEAD update ./dst
must now becomecopier update -r HEAD ./dst
orcopier update ./dst -r HEAD
. - Automatic mode removed. Since now subcommands are required, the automatic mode is removed.
- Deprecated
copier.copy
function is removed. Usecopier.run_copy
,copier.run_update
orcopier.run_recopy
explicitly as needed. - default values must be of the same type than the question.
Feat
- disable unsafe features by default and add
--UNSAFE
switch (#1171) - basic nixpkgs overlay
- add
recopy
command and function - support conditional choices (#1010)
- validate default values (#1075)
Fix
- explain better why an answer casting fails
- cli: display subcommand args meaning
- preserver recursive symlinks
- work around Pydantic bug when parsing choices
- skip validating question and generating its default value when its skip condition is met
Refactor
- overwrite always on updates
- update: default to inline markers and 3 lines of context
- remove unused local overrides to answers
v7.2.0 (2023-04-19)
Feat
- customizable update accuracy
Fix
- fix using a branch name as VCS ref
- answer validation for question with complex choices (#1110)