Skip to content

install.sh: checksum verification fails on macOS due to BSD sha256sum incompatibility #33

@anakinMango

Description

@anakinMango

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions