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
Thanks @TerryHowe. Looking at those changes, it seems that the behavior is different across commands. For example, if I try --verbose with oras login, it fails. With oras cp it works with a deprecation statement:
./oras cp --verbose
Flag --verbose has been deprecated, and will be removed in a future release.
Error: "oras cp" requires exactly 2 argument but got 0
Usage: oras cp [flags] <from>{:<tag>|@<digest>} <to>[:<tag>[,<tag>][...]]
Please specify exactly 2 argument as the source and destination for copying. Run "oras cp -h"for more options and examples
Without --verbose for oras login I still get some verbose output:
However, from a consumer perspective I think would be good to maintain the --verbose in ALL commands with the deprecation statement, essentially the behavior of oras cp --verbose and then only in a future release remove it entirely.
The behavior of the --verbose flag was inconsistent across different commands, causing a lot of confusion. Prior to v1.3.0-beta.1, the following 6 oras commands showed verbose status output in non-tty mode with the --verbose flag:
oras attach
oras blob push
oras cp
oras manifest push
oras pull
oras push
Meanwhile, the following 10 oras commands showed identical output with and without the --verbose flag:
oras blob delete
oras blob fetch
oras login
oras manifest delete
oras manifest fetch
oras manifest fetch-config
oras repo ls
oras repo tags
oras resolve
oras tag
Since the existence of --verbose was confusing, we made the default status output verbose for the 6 commands where --verbose made a difference. We also removed the flag as a bug fix for the 10 commands where --verbose made no difference.
However, from a consumer perspective I think would be good to maintain the --verbose in ALL commands with the deprecation statement, essentially the behavior of oras cp --verbose and then only in a future release remove it entirely.
@flavioschuindt Is your concern more about the inconsistency of the deprecation status of the --verbose command or about the breaking change?
Regarding inconsistency, our recommendation is not to use --verbose flag except for oras discover (the deprecation work is still in progress).
Regarding the breaking change, maybe we can consider bringing back the --verbose flag for all commands and marking it as deprecated, similar to what we did for commands like oras cp? 🤔
Regarding the breaking change, maybe we can consider bringing back the --verbose flag for all commands and marking it as deprecated, similar to what we did for commands like oras cp? 🤔
Correct, that is what I was talking about in my previous comment. I understand that if there is no difference in the output, we can remove the flag. However, we should also think about not breaking existing customers, so a deprecation notice helps as preparation for complete removal in a future release.
Reacted by Lixia (Sylvia) Lei, Feynman Zhou and Xiaoxuan Wang
Regarding the breaking change, maybe we can consider bringing back the --verbose flag for all commands and marking it as deprecated, similar to what we did for commands like oras cp? 🤔
Correct, that is what I was talking about in my previous comment. I understand that if there is no difference in the output, we can remove the flag. However, we should also think about not breaking existing customers, so a deprecation notice helps as preparation for complete removal in a future release.
It is by design that the --verbose is in the deprecation process for those 10 oras comamnds as described in the proposal doc Improve ORAS diagnose experience.
To avoid breaking changes in oras v1, does it make sense to completely deprecate the --verbose flag in the next major release v2.0? It means that this flag is still available but keep such warning message as a notice.
Flag --verbose has been deprecated, and will be removed in v2.0.
To avoid breaking changes in oras v1, does it make sense to completely deprecate the --verbose flag in the next major release v2.0? It means that this flag is still available but keep such warning message as a notice.
I second that. I believe is a better approach and will clearly express intention to customers without "abruptly" removing it.
Activity
TerryHowe commentedon Feb 28, 2025
https://github.com/oras-project/oras/pull/1553/files#diff-5b23d96c74ce66184121c5d744e98c46dca3b4f7b5bab1526c8d732d7a87186c
flavioschuindt commentedon Feb 28, 2025
Thanks @TerryHowe. Looking at those changes, it seems that the behavior is different across commands. For example, if I try
--verbosewithoras login, it fails. Withoras cpit works with a deprecation statement:Without --verbose for oras login I still get some verbose output:
However, from a consumer perspective I think would be good to maintain the --verbose in ALL commands with the deprecation statement, essentially the behavior of
oras cp --verboseand then only in a future release remove it entirely.TerryHowe commentedon Feb 28, 2025
That PR adds a verbose option to some commands like
cpTerryHowe commentedon Feb 28, 2025
There was a discussion at the time about the breaking change, but I thought it was worth discussing again since we are still in beta.
Wwwsylvia commentedon Mar 3, 2025
The behavior of the
--verboseflag was inconsistent across different commands, causing a lot of confusion. Prior tov1.3.0-beta.1, the following 6orascommands showed verbose status output in non-tty mode with the--verboseflag:oras attachoras blob pushoras cporas manifest pushoras pulloras pushMeanwhile, the following 10
orascommands showed identical output with and without the--verboseflag:oras blob deleteoras blob fetchoras loginoras manifest deleteoras manifest fetchoras manifest fetch-configoras repo lsoras repo tagsoras resolveoras tagSince the existence of
--verbosewas confusing, we made the default status output verbose for the 6 commands where--verbosemade a difference. We also removed the flag as a bug fix for the 10 commands where--verbosemade no difference.@flavioschuindt Is your concern more about the inconsistency of the deprecation status of the
--verbosecommand or about the breaking change?Regarding inconsistency, our recommendation is not to use
--verboseflag except fororas discover(the deprecation work is still in progress).Regarding the breaking change, maybe we can consider bringing back the
--verboseflag for all commands and marking it asdeprecated, similar to what we did for commands likeoras cp? 🤔flavioschuindt commentedon Mar 3, 2025
Correct, that is what I was talking about in my previous comment. I understand that if there is no difference in the output, we can remove the flag. However, we should also think about not breaking existing customers, so a deprecation notice helps as preparation for complete removal in a future release.
Wwwsylvia commentedon Mar 4, 2025
Got it, thanks @flavioschuindt ! We should discuss this in tomorrow's community meeting /cc @shizhMSFT @FeynmanZhou
FeynmanZhou commentedon Mar 4, 2025
Hi @flavioschuindt ,
It is by design that the
--verboseis in the deprecation process for those 10orascomamnds as described in the proposal doc Improve ORAS diagnose experience.To avoid breaking changes in
orasv1, does it make sense to completely deprecate the--verboseflag in the next major release v2.0? It means that this flag is still available but keep such warning message as a notice./cc @oras-project/oras-cli
flavioschuindt commentedon Mar 4, 2025
I second that. I believe is a better approach and will clearly express intention to customers without "abruptly" removing it.
Wwwsylvia commentedon Mar 5, 2025
In today's community meeting, maintainers agreed that we should bring back the
--verboseflag to the following commands and mark it as deprecated.oras blob deleteoras blob fetchoras loginoras manifest deleteoras manifest fetchoras manifest fetch-configoras repo lsoras repo tagsoras resolveoras tag