Skip to content

Support customizing file name in oras pull #1159

Open

Description

@FeynmanZhou

What is the version of your ORAS CLI

v1.1.0

What would you like to be added?

Currently, oras pull saves the artifact with the name of the file that is stored in the annotations of the manifest. However, this makes it hard to find the file after pulling the file to local since users will need to go figure out what the annotation is and search for the file name, eventually find the file with the annotation as a reference. This is really cumbersome for users or for machines to find a pulled file.

In some cases, if the artifact that has multiple layers, we need to provide an option that allows to give file names to multiple pulled files. We will need to define the flags and experience to cover sing-layer and multi-layer scenarios.

Why is this needed for ORAS?

It would be much convenient if there is an option that points to a file (instead of a folder) and save the file with a given name, so users can easily find and use the pulled file for other operations later. This will be efficient and helpful in the automation or CI/CD scenario.

Are you willing to submit PRs to contribute to this feature?

  • Yes, I am willing to implement it.

Activity

  1. added
    enhancement
    triage
    on Nov 1, 2023
  2. added this to the future milestone on Nov 6, 2023
  3. qweeah commented on Nov 6, 2023

    @qweeah
    Contributor

    Putting it to future to avoid being marked as stale.

  4. qweeah commented on Nov 8, 2023

    @qweeah
    Contributor

    This looks similar to #346. +@ndeloof who helped raise the issue.

  5. FeynmanZhou commented on Nov 8, 2023

    @FeynmanZhou
    MemberAuthor

    Maintainers suggested moving this issue to v1.3.0 milestone per discussion on Nov 7, 2023

  6. modified the milestones: future, v1.3.0 on Nov 8, 2023
  7. removed
    triage
    on Nov 14, 2023
  8. added
    ux
    on Mar 5, 2024
  9. added
    spec required
    on Mar 14, 2024
  10. modified the milestones: v1.3.0, v1.4.0 on Jul 24, 2024
  11. modified the milestones: v1.4.0, future on Aug 6, 2025
  12. TerryHowe commented on Oct 22, 2026

    @TerryHowe
    Member

    #1457 (pulled directory names that are invalid on Windows) was closed as a duplicate of this issue; customizing the output name would resolve it.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementspec requiredux

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions