mirror of
https://github.com/apple/container.git
synced 2026-07-12 12:37:02 +00:00
aa7fef3d1d
- Fixes #1801. - When `container image save` runs without `--output`, stdout carries the OCI tar archive. The command writes the archive bytes to stdout and then `print(reference)`s each saved image reference to stdout afterward, appending non-archive text after the tar EOF marker, which will cause strict tar/OCI consumers to fail. - This routes the saved-reference list to stderr in the no-`--output` branch, so stdout contains only archive bytes. When saving to a file via `--output`, stdout is free, so the references continue to print to stdout exactly as before. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>