Skip to content
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

Error: failed to retrieve secret "whatever": entry is not in the password store -> Sould be stderr not stdout #2667

Open
shemeshg opened this issue Sep 13, 2023 · 1 comment
Assignees
Labels
bug Defects
Milestone

Comments

@shemeshg
Copy link

Summary

when gopass show item not with exact name, the output goes to stderr and the error to stdout

Steps To Reproduce

macos@macoss-Mac-mini ~ % gopass show "FAST/2.notes/improvements pass-simple.md"|cat
# Improvements
macos@macoss-Mac-mini ~ % gopass show "FAST/2.notes/improvements pass-simp"|cat

Error: failed to retrieve secret "FAST/2.notes/improvements pass-simp": entry is not in the password store
macos@macoss-Mac-mini ~ % gopass show "FAST/2.notes/improvements pass-simp"
⚠ Entry "FAST/2.notes/improvements pass-simp" not found. Starting search...
✅ Found exact match in "FAST/2.notes/improvements pass-simple.md"
Secret: FAST/2.notes/improvements pass-simple.md

# Improvements

macos@macoss-Mac-mini ~ %

Expected behavior

The stdout should contain the entry content, and stderr all the rest, same as searching successfully with

exact name

Environment

  • OS: [e.g. Mac OS X High Sierra, Ubuntu 18.04, Windows 10, ...]
  • OS version: [uname -a]
macos@macoss-Mac-mini ~ % uname -a
Darwin macoss-Mac-mini.local 21.6.0 Darwin Kernel Version 21.6.0: Thu Jul  6 22:18:26 PDT 2023; root:xnu-8020.240.18.702.13~1/RELEASE_X86_64 x86_64
macos@macoss-Mac-mini ~ %
  • gopass Version: [gopass version]
macos@macoss-Mac-mini ~ % gopass version
gopass 1.15.8 go1.21.1 darwin amd64
macos@macoss-Mac-mini ~ %
  • Installation method: [e.g. from source, brew, gopass repo]
brew install gopass

Additional context

N/A

@shemeshg shemeshg changed the title Error: failed to retrieve secret "whatever": entry is not in the password store - Sould be stdout not stderr Error: failed to retrieve secret "whatever": entry is not in the password store - Sould be stderr not stdout Sep 13, 2023
@shemeshg shemeshg changed the title Error: failed to retrieve secret "whatever": entry is not in the password store - Sould be stderr not stdout Error: failed to retrieve secret "whatever": entry is not in the password store --- Sould be stderr not stdout Sep 13, 2023
@shemeshg shemeshg changed the title Error: failed to retrieve secret "whatever": entry is not in the password store --- Sould be stderr not stdout Error: failed to retrieve secret "whatever": entry is not in the password store -> Sould be stderr not stdout Sep 13, 2023
@dominikschulz dominikschulz self-assigned this Sep 24, 2023
@dominikschulz dominikschulz added this to the 1.15.13 milestone Mar 29, 2024
@dominikschulz dominikschulz added the bug Defects label Mar 29, 2024
@dominikschulz
Copy link
Member

Errors and Warnings should already go to Stderr but redirecting the other messages that are not part of the secret might require some more tricky changes.

That being said: I think it's a valid request.

@dominikschulz dominikschulz modified the milestones: 1.15.13, 1.15.14 Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Defects
Projects
None yet
Development

No branches or pull requests

2 participants