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

cmd/age: print a better error message when plugins are missing #486

Open
FiloSottile opened this issue Jan 12, 2023 · 2 comments
Open

cmd/age: print a better error message when plugins are missing #486

FiloSottile opened this issue Jan 12, 2023 · 2 comments

Comments

@FiloSottile
Copy link
Owner

If we choose to print the first argument of unrecognized stanzas, we should update the plugin spec to mention authors should put something recognizable and not sensitive in there, as in theory it's not special.

See #443 for a use case.

@FiloSottile
Copy link
Owner Author

Alternatively, we could define a stanza type specifically for user hints. Plugins could produce

-> hint
download plugin from example.com

based on which we could print

age: hint: the file includes a suggestion: download plugin from example.com

These stanzas would not count for exclusive types like scrypt.

@AnomalRoil
Copy link

I think the hint approach seems like a better option, but means "bulkier" stanzas. Not sure "how cheap" we consider storage?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants