OSX reports arm64 (Linux reports aarch64)
MODIFY
repo2docker/utils.py
repo2docker/utils.py
@@ -537,6 +537,10 @@ def get_platform():
if m == "x86_64":
return "linux/amd64"
elif m == "aarch64":
+ # Linux reports aarch64
+ return "linux/arm64"
+ elif m == "arm64":
+ # OSX reports arm64
return "linux/arm64"
else:
warnings.warn(f"Unexpected platform '{m}', defaulting to linux/amd64")

MODIFY
tests/unit/test_utils.py
tests/unit/test_utils.py
@@ -168,6 +168,7 @@ def test_local_pip_requirement(req, is_local):
[
("x86_64", "linux/amd64"),
("aarch64", "linux/arm64"),
+ ("arm64", "linux/arm64"),
("other", "linux/amd64"),
],
)

OSX reports arm64 (Linux reports aarch64)