-
-
Notifications
You must be signed in to change notification settings - Fork 501
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
gopass list --flat
doesn't show secrets with the same names as folders
#2338
Comments
Small but tricky little issue. I think I found it, but I'll need to make sure all the tests pass and nothing breaks. |
Fixes gopasspw#2338 RELEASE_NOTES=[BUGFIX] Do not shadow entries behind folders. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
I won't say it's by design, but note we might want to change the text around shadowing here if we change the behaviour: |
You are right. Thank you. I'll look at that once I get to fix the failing tests. |
* Do not omit shadowed entries in ls output Fixes #2338 RELEASE_NOTES=[BUGFIX] Do not shadow entries behind folders. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Add shadow marker Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Adjust tests to match the new shadow behaviour Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Update list docs wrt. shadowing Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Do not mark mounts as shadowed. That's already implicit. Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> * Add more comments and some other cleanup Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org> Signed-off-by: Dominik Schulz <dominik.schulz@gauner.org>
This doesn't seem to have been fixed in 1.14.9? I'm seeing that |
I'm confused. This should have been fixed before. #2341 did fix some cases but your PR looks legit. |
Summary
If a secret has the same name as a folder, it won't be listed by
gopass list --flat
.Steps To Reproduce
Expected behavior
Should return:
Environment
Additional context
The text was updated successfully, but these errors were encountered: