Skip to content

fix(ci): Xcode Cloud ci_post_clone.sh fails — mise not in PATH #75

Closed

Description

@wei18

Symptom

Xcode Cloud build fails at Run ci_post_clone.sh step:

/Volumes/workspace/repository/ci_scripts/ci_post_clone.sh: line 8: mise: command not found
Command exited with non-zero exit-code: 127

Root cause

ci_scripts/ci_post_clone.sh line 8 calls mise install but Xcode Cloud's macOS Tahoe 26.4 (25E246) image does not ship with mise preinstalled. The script needs to bootstrap mise itself before invoking it.

Affected file

/Users/zw/GitHub/Wei18/Sudoku-spec/ci_scripts/ci_post_clone.sh

Fix direction

Prepend a bootstrap step:

# Bootstrap mise (Xcode Cloud images don't ship with it)
if ! command -v mise >/dev/null 2>&1; then
    curl https://mise.run | sh
    export PATH="$HOME/.local/bin:$PATH"
fi

Reference: https://mise.jdx.dev/getting-started.html (official install script).

Activation/shell hooks NOT needed since the script invokes mise directly (no shell init required).

Acceptance

  • Xcode Cloud build advances past Run ci_post_clone.sh step
  • mise install succeeds, fetching gitleaks + swiftlint per .mise.toml
  • Subsequent gitleaks pre-commit scan executes

Out of scope

  • Migrating off mise / changing the toolchain pinning
  • foundations.md §7.6 / §7.11 hook design (preserved as-is)

Activity

  1. added a commit that references this issue on May 21, 2026
    d02bddd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions