Skip to content

--verbose flag removed in oras 1.3.0-beta.2 #1640

Description

@flavioschuindt

What happened in your environment?

The --verbose flag was removed in 1.3.0-beta.2:

Image

In previous versions (e.g. 1.1.0) it used to work:

Image

What did you expect to happen?

--verbose should continue to work in version 1.3.0-beta.2.

How can we reproduce it?

Try to use any subcommand with the --verbose flag.

What is the version of your ORAS CLI?

Version: 1.3.0-beta.2
Go version: go1.24.0
OS/Arch: darwin/amd64
Git commit: 87379d2
Git tree state: clean

What is your OS environment?

Mac OS Sonoma (14.7.2)

Are you willing to submit PRs to fix it?

  • Yes, I am willing to fix it.

Activity

  1. added
    bug
    triage
    on Feb 28, 2025
  2. flavioschuindt commented on Feb 28, 2025

    @flavioschuindt
    Author

    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:

    Image

    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.

  3. TerryHowe commented on Feb 28, 2025

    @TerryHowe
    Member

    That PR adds a verbose option to some commands like cp

  4. TerryHowe commented on Feb 28, 2025

    @TerryHowe
    Member

    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.

  5. Wwwsylvia commented on Mar 3, 2025

    @Wwwsylvia
    Member

    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? 🤔

  6. flavioschuindt commented on Mar 3, 2025

    @flavioschuindt
    Author

    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.

  7. added
    question
    and removed
    bug
    triage
    on Mar 4, 2025
  8. Wwwsylvia commented on Mar 4, 2025

    @Wwwsylvia
    Member

    Got it, thanks @flavioschuindt ! We should discuss this in tomorrow's community meeting /cc @shizhMSFT @FeynmanZhou

  9. FeynmanZhou commented on Mar 4, 2025

    @FeynmanZhou
    Member

    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.

    Hi @flavioschuindt ,

    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.

    /cc @oras-project/oras-cli

  10. flavioschuindt commented on Mar 4, 2025

    @flavioschuindt
    Author

    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.

  11. Wwwsylvia commented on Mar 5, 2025

    @Wwwsylvia
    Member

    In today's community meeting, maintainers agreed that we should bring back the --verbose flag to the following commands and mark it as deprecated.

    • 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
  12. removed
    question
    on Mar 11, 2025
  13. added this to the v1.3.0-beta.3 milestone on Mar 11, 2025
  14. added
    bug
    on Mar 11, 2025
  15. added theissue type on Mar 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

bug

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions