[mender-artifact] Write to `--output-file` instead of replacing it

Description

When creating an artifact, the CLI tool is writing to <output-file>.tmp and then moving (replacing) the destination file. There’s no reason not to truncate and write to the destination from the beginning - even if the command fails, the output file should contain whatever output was generated.

Affects versions

None

Environment

None

Activity

Show:
Fixed

Details

Assignee

Reporter

Labels

Story Points

Priority

Started

Oct 25, 2024, 9:44 AM

Days in progress

0

Backlog

yes

Zendesk Support

Checklist

Created October 25, 2024 at 9:38 AM
Updated November 5, 2024 at 1:38 PM
Resolved November 5, 2024 at 1:38 PM