Skip to content

Conversation

bismansahni
Copy link
Contributor

Summary

Fixes issue #712 where container image save command fails with a notFound error when no platform options are specified.

The fix adds a default to use the current platform when --platform, --arch, and --os flags are all unspecified, preventing the platform variable from being nil.

Changes

  • Modified ImageSave.swift to default to Platform.current when no platform options are provided

Test plan

  • Build the project successfully
  • Verify that container image save now works without platform flags
  • Ensure existing behavior with explicit platform flags remains unchanged

Fixes #712

bismansahni and others added 3 commits October 6, 2025 13:14
When saving images without specifying --platform, --arch, or --os flags,
the command now defaults to the current platform instead of failing with
a notFound error.

Fixes apple#712
@katiewasnothere katiewasnothere self-requested a review October 13, 2025 16:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: Image save command: platform default to current

1 participant