From a7377f761377a52d030d38393861de261e1ed011 Mon Sep 17 00:00:00 2001 From: Nick Vigilante Date: Tue, 5 May 2026 16:41:50 -0400 Subject: [PATCH] fix(Makefile): map arm64 to aarch64 for typos binary download (#24986) macOS ARM reports arm64 via uname -m, but typos GitHub release assets use aarch64 in their filenames. The mismatch produces a 404, so the build/typos-$(VERSION) target fails silently and Apple Silicon users fall back to whatever typos binary their environment provides, such as the one from nix. That binary may be a different version than the one pinned in CI, creating a skew where local lint/typos rejects strings that CI accepts. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 6d6b929bc5..35de9c871d 100644 --- a/Makefile +++ b/Makefile @@ -781,6 +781,10 @@ TYPOS_VERSION := $(shell grep -oP 'crate-ci/typos@\S+\s+\#\s+v\K[0-9.]+' .github # Map uname values to typos release asset names. TYPOS_ARCH := $(shell uname -m) +# typos release assets use aarch64, but macOS ARM reports arm64 via uname -m. +ifeq ($(TYPOS_ARCH),arm64) +TYPOS_ARCH := aarch64 +endif ifeq ($(shell uname -s),Darwin) TYPOS_OS := apple-darwin else