question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: error "is not a relative path" changing answers_file path

See original GitHub issue

Working 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:closed
  • Created 2 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
garu57commented, Feb 26, 2022

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

0reactions
yajocommented, Feb 26, 2022

👋 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found