bug: error "is not a relative path" changing answers_file path
See original GitHub issueWorking with Windows 10 updated to last patch an copier v6 installed from git repo master (need fix for #520). I’m still testing copier behavior and i want to keep answers file separated from created project. I want to be able to delete project dir and recreate the test project without being asked again all the questions. But trying to change answers file path i get this error:
pydantic.error_wrappers.ValidationError: 1 validation error for Worker
answers_file
"C:\home\prjHome\templates\templates-build\gg-py-package-template-test\.copier-answers.yml" is not a relative path (type=value_error.path.not_relative; path=C:\home\prjHome\templates\templates-build\gg-py-package-template-test\.copier-answers.yml)
I couldn’t find anywhere in the doc that answers file path must be relative to something. (By the way, relative to what?
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Error with relative paths inside sdl · Issue #10 - GitHub
I just saw that on the documentation you have absolute paths, but what blocks to have the same behavior with the loader?
Read more >"Relative path cannot be assigned" when attaching an xref in ...
Issue : When trying to attach a drawing as an external reference (XREF) with a relative path in AutoCAD, the following message is...
Read more >Error the relative path of resources folder auto change to ...
You are using a relative path to the file, which relies on the CurrentDirectory being valid. This is either changing, or not being...
Read more >Bug: Maps saved with relative paths can have broken data ...
Click the Data source button and select 'Store relative paths'. Save the map, or save the existing map to a new name.
Read more >Relative paths in .do files? - Statalist
So I do not hard code paths into the do-files. ... It automatically changes Stata's current directory to the one that contains the...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
If I’m allowed one last comment, i see you point. But anyhow you should update the general doc in answers_file or the-copier-answersyml-file, because it is the first place that one looks into to use
copier
. Thanks👋 welcome to copier!
It has to be relative because its value is available at render time, and used to put that file. Also because it’s used to update projects, and for that a project must be git-tracked, thus the file must be in the repo anyway.
Closing, as this seems more a question than an issue.