You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
discover: --output deprecation message suggests an empty --format #2296
The same happens for -o tree and -o table. The message is built with opts.Template (cmd/oras/root/discover.go), which is only set for the go-template format, instead of the parsed format type. The switch a few lines above already uses opts.Format.Type.
I found this by reading the code and checked it with a unit test that runs the command's PreRunE and captures stderr, not against a registry.
What did you expect to happen?
[DEPRECATED] --output is deprecated, try `--format json` instead
How can we reproduce it?
Run oras discover -o json <reference> (the message is printed before any registry request), or the unit test in the linked PR.
Activity