age icon indicating copy to clipboard operation
age copied to clipboard

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

Open FiloSottile opened this issue 2 years ago • 2 comments

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 avatar Jan 12 '23 08:01 FiloSottile

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.

FiloSottile avatar Jan 12 '23 08:01 FiloSottile

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

AnomalRoil avatar Jun 16 '24 14:06 AnomalRoil