Skip to content

Commit 90ffcb0

Browse files
committed
refactor(platform): drop architecture reference in favor of platform detection
1 parent cbd61a6 commit 90ffcb0

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkg/extensions/config/sync/config.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ type RegistryConfig struct {
3434
OnlySigned *bool
3535
CredentialHelper string
3636
PreserveDigest bool // sync without converting
37-
Architectures []string `mapstructure:",omitempty"` // filter architectures during sync (DEPRECATED: use Platforms instead)
3837
Platforms []string `mapstructure:",omitempty"` // filter platforms during sync (supports both "arch" and "os/arch" formats)
3938
}
4039

pkg/extensions/sync/destination.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ func ParsePlatform(platform string) Platform {
4646
Architecture: parts[1],
4747
}
4848
}
49-
// If only one part, assume it's the architecture
49+
// For any other case, assume only architecture is specified
5050
return Platform{
5151
OS: "",
5252
Architecture: platform,

0 commit comments

Comments
 (0)