Bug
Running the install script on macOS fails at checksum verification:
==> Verifying checksum...
usage: sha256sum [-bctwz] [files ...]
✗ Checksum verification failed — binary may be corrupted or tampered with
Root Cause
macOS ships a BSD variant of sha256sum that does not support --check or --status flags (GNU coreutils flags). The script's command -v sha256sum check succeeds on macOS, so the shasum fallback branch is never reached — but the subsequent sha256sum --check --status call immediately fails with a usage error.
Environment
- macOS (darwin/arm64 and darwin/amd64)
- NEXUS v0.1.4
Fix
Detect the OS (already available as $OS from detect_platform) and prefer shasum -a 256 on darwin before falling back to sha256sum on Linux.
A PR with the fix is attached to this issue.
Bug
Running the install script on macOS fails at checksum verification:
Root Cause
macOS ships a BSD variant of
sha256sumthat does not support--checkor--statusflags (GNU coreutils flags). The script'scommand -v sha256sumcheck succeeds on macOS, so theshasumfallback branch is never reached — but the subsequentsha256sum --check --statuscall immediately fails with a usage error.Environment
Fix
Detect the OS (already available as
$OSfromdetect_platform) and prefershasum -a 256on darwin before falling back tosha256sumon Linux.A PR with the fix is attached to this issue.