Skip to content

crane export creates tar even on failure #2066

Open
@mamachanko

Description

@mamachanko

Describe the bug

A tar file is created even though the image failed to be pulled.

To Reproduce

# fails
crane export does-not-exist x.tar

# succeeds
file x.tar

Expected behavior

When crane export some-image some.tar fails, then it should not create a some.tar.

Additional context

Add any other context about the problem here.

❯ crane version
0.20.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions