-
-
Notifications
You must be signed in to change notification settings - Fork 396
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
facts.files.File does not properly handle the ~ (relative) directory in Ubuntu/Debian #1025
Comments
Yeah this should work, it's a gotcha currently that it doesn't just work as one would expect. |
I believe this is caused by the fact that It might be a viable solution to check if the path starts with I'll try to create a PR later. @Fizzadar Just saw that you assigned yourself, are you fine with me giving this a try? |
It seems like #1175 only fixed this issue for the |
Describe the bug
Addressing file via
~/file
notation resolves to wrong path using facts.files.File, operations.files.file and so onTo Reproduce
test.txt
in~
directorymain.py
:Ubuntu 20.04.6 LTS (GNU/Linux 5.4.0-164-generic x86_64)
Debian GNU/Linux 12 (bookworm) Linux 6.1.0-13-amd64 x86-64
Expected behavior
Explicit warning/error about using of
~
in path, or support for this notationMeta
pyinfra --support
.pip
none
-vv
and--debug
.nothing special in verbose output
The text was updated successfully, but these errors were encountered: