macOS darwin/amd64 vs Darwin/x86_64 All In One
uname
# uname
$ uname
Darwin
$ uname -a
Darwin xgqfrms-mm.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:08:47 PST 2022; root:xnu-8792.61.2~4/RELEASE_X86_64 x86_64
$ go version
go version go1.19.4 darwin/amd64
??? darwin/amd64
=== Darwin/x86_64
✅
https://dl.google.com/go/go1.19.4.darwin-amd64.pkg
docker-compose
# $ curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-darwin-aarch64 > /usr/local/bin/docker-compose ❌
# $ curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-darwin-x86_64 > /usr/local/bin/docker-compose ✅
# 动态生成对应的系统架构的下载版本 URL
$ curl -L https://github.com/docker/compose/releases/download/v2.14.2/docker-compose-$(uname -s)-$(uname -m) > /usr/local/bin/docker-compose
$ ls -l /usr/local/bin/docker-compose
$ chmod a+x /usr/local/bin/docker-compose
$ docker-compose --version