Symbolic link in the path to current directory
#69
Closed
opened 9 years ago by kirelagin
·
2 comments
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?
The problem is that it is trying to include the fallback template using a relative path and that fails, because
~/tmp
is a symlink:Relative paths should be relative to whatever was used initially to produce those relative paths, and it seems to be relative to the completely dereferenced file name.
I do see a bug here, though maybe different than what you describe.
raco pollen render
is trying to render both the deferenced symlink path (/run/user/1000/tmpdir/test/test.html.pm
) and the raw symlink path (/home/kirrun/tmp/test/test.html.pm
). The first one actually works; the second one fails.This was because of an off-by-one error in
raco pollen render
which I’ve now fixed.Ah, I thought it did output the file name before and after dereferencing for informational purposes.
Now I see that the output is actually produced before it fails. Good to know that it’s fixed now.