<#6565 [Core feature] Dynamic platform detection f...
# flyte-github
c
#6565 [Core feature] Dynamic platform detection for ImageSpec to support cross-platform development Issue created by BarryWu0812 ### Motivation: Why do you think this is important? Currently, the
ImageSpec
class has a hardcoded default platform of
linux/amd64
, which causes compatibility issues when developing on different machine architectures, particularly on Apple Silicon Macs (ARM64). image_spec = ImageSpec( registry="localhost:30000", packages=[ new_flytekit, ], apt_packages=["git"], ) ### Goal: What should the final outcome look like, ideally? The ImageSpec should automatically detect the current machine's architecture and set an appropriate default platform: "linux/arm64" for Apple Silicon Macs (ARM64) "linux/amd64" for Intel Macs (x86_64) Maintain backward compatibility for production environments ### Describe alternatives you've considered N/A ### Propose: Link/Inline OR Additional context N/A ### Are you sure this issue hasn't been raised already? • Yes ### Have you read the Code of Conduct? • Yes flyteorg/flyte