-
Notifications
You must be signed in to change notification settings - Fork 371
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
Unable to reference files in a sibling directory using ..
#303
Comments
Yeah, vcs_relative_path is pretty simplistic. realpath would be a solution but it isn't on macOS. The workaround is to I'd love a PR to fix this. |
Which platforms does Blackbox support, so I can think of how to solve it for all? |
Another related issue is that Blackbox can't refer to encrypted files using their absolute path, which I realised when trying to use that as a workaround for this issue.
Upon closer inspection, I see that |
Hi @jamesottaway ! Sadly I had to revert 87b7cd0. "make test" fails. Can you take a look. A file at the base of the repo adds "/" to .gitignore instead of "/filename".
|
Will do. |
I have a repo with a shared
secrets/
directory at the top-level, alongside many others. If I'm in one of the other directories I cannot, for example,blackbox_cat ../secrets/fake-secret.sh .gpg
:I traced the problem to
vcs_relative_path
which doesn't try to resolve the../
part of the relative path, meaning it doesn't exactly match the line inblackbox-files.txt
. One solution would be to callrealpath
on the argument, but I'm not sure whether that's sufficiently cross-platform.The text was updated successfully, but these errors were encountered: