Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

src-cli: Clean up partially downloaded ZIP files if user aborts with Ctrl-C #15865

@mrnugget

Description

@mrnugget

When you hit Ctrl-C while src-cli is downloading the repository archives for src campaign [preview|apply] the download will be cancelled and the ZIP files will be left on disk in an invalid state. The next run then produces an error that the ZIP file is invalid.

We should handle context cancellation correctly and clean up these files if we haven't downloaded them fully.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions