Skip to content

docs: warn that a relative local template path breaks copier update - #374

Merged
eduralph merged 1 commit into
mainfrom
docs/373-relative-src-path
Jul 31, 2026
Merged

docs: warn that a relative local template path breaks copier update#374
eduralph merged 1 commit into
mainfrom
docs/373-relative-src-path

Conversation

@eduralph

Copy link
Copy Markdown
Owner

A template developer who renders from a local checkout with a relative path (as opposed to the walkthrough's gh: URL) gets a project whose first copier update fails with a confusing "Local template must be a directory." error — copier records the source argument verbatim as _src_path and resolves it from the project directory at update time.

This adds a short aside to step 01 §1a: render from a gh:/https: URL or an absolute path, why (with the upstream references copier-org/copier#335 and pending fix copier-org/copier#2717), and the one-line repair for an already-rendered project (hand-edit _src_path). Docs only, no code change — the real correction is queued upstream.

Closes #373

Copier records the source argument verbatim as _src_path and resolves it
from the project directory at update time, so a render from a relative
local path is dead on the first copier update (copier-org/copier#335;
fix pending upstream in copier-org/copier#2717). Add a step-01 aside:
render from a URL or an absolute path, and hand-edit _src_path to
repair an existing render.

Issue: #373
Signed-off-by: Eduard R. <eduard@ralphovi.net>
@eduralph
eduralph merged commit 2fbd613 into main Jul 31, 2026
3 checks passed
@eduralph
eduralph deleted the docs/373-relative-src-path branch July 31, 2026 15:41
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

Successfully merging this pull request may close these issues.

docs: warn that a relative local template path breaks copier update

1 participant