Skip to content

Docs: List Xcode Command Line Tools as a macOS prerequisite - #1677

Merged
huang195 merged 1 commit into
rossoctl:mainfrom
huang195:docs/contributing-xcode-1032
Nov 6, 2026
Merged

huang195 merged 1 commit into
rossoctl:mainfrom
huang195:docs/contributing-xcode-1032

Conversation

@huang195

@huang195 huang195 commented Nov 6, 2026

Copy link
Copy Markdown
Member

Closes #1032.

What it does

Adds the Xcode Command Line Tools to the macOS prerequisites in CONTRIBUTING.md:

  • /usr/bin/make is a shim for them. Without them, make fails with an xcode-select: error before it reads the Makefile.
  • A sandbox that blocks /var/select/ gives the same error, even when the tools are installed. There, run the Makefile's go build commands directly. The reporter verified this workaround.

Not done

  • No gmake hint. aslom's comment says that gmake alone is not sufficient on macOS.
  • No /v1/version endpoint, and no detection of the shim failure in dev-install. The issue lists these as possible improvements, not as requirements.

Assisted-By: Claude (Anthropic AI) [email protected]

On macOS, /usr/bin/make is a shim for the Xcode Command Line Tools.
Without them, make fails with an xcode-select error before it reads the
Makefile. A sandbox that blocks /var/select/ gives the same error. Say
so, and tell sandbox users to run the go build commands directly.

Fixes rossoctl#1032

Assisted-By: Claude (Anthropic AI) <[email protected]>
Signed-off-by: Hai Huang <[email protected]>
@huang195
huang195 requested a review from a team as a code owner November 6, 2026 18:18
@coderabbitai

coderabbitai Bot commented Nov 6, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 56 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: b303ddb2-1731-4562-be94-97eb8fb4d2d6
Commits

Reviewing files that changed from the base of the PR and between 180d388 and d6bcdee.

Files selected for processing: 1

  • CONTRIBUTING.md
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@clawgenti clawgenti left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Summary

This is a small, accurate docs fix for #1032. /usr/bin/make really is an Xcode CLT shim, and the sandbox workaround is the one the reporter verified. The new bullet sits in the right place in Prerequisites. I have one non-blocking suggestion: "run the Makefile's go build commands directly" leaves out a few steps a sandboxed reader needs.

Author: huang195 (MEMBER — maintainer)
Areas reviewed: Docs (checked against Makefile at head and the issue thread)
Agent/IDE config (.claude/.vscode): none
Commits: 1 commit, all signed-off: yes
CI status: passing (CodeRabbit/Spellcheck skipped)

Comment thread CONTRIBUTING.md
- **Xcode Command Line Tools on macOS** (`xcode-select --install`). `/usr/bin/make` is a
shim for them, so without them `make` fails before it reads the Makefile. In a sandbox
that blocks `/var/select/`, the same `xcode-select: error` shows even when the tools are
installed. There, run the Makefile's `go build` commands directly.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: "Run the Makefile's go build commands directly" is a bit thin for someone in exactly this situation. The commands can't be copied as they stand:

  • cortex needs its tag list first: TAGS=$(go -C scripts/profile-tags run . full), then cd cmd/cortex && GOWORK=off go build -tags "$TAGS" -o ../../bin/cortex .
  • agentop's -ldflags "-X main.revision=..." comes from git rev-parse. /usr/bin/git is the same xcode-select shim, so in that sandbox the revision may come out empty. Plain go build may also stop with error obtaining VCS status unless a non-shim git is on PATH or you pass -buildvcs=false. (The reporter probably had Homebrew git, so this is worth one clause, not a rewrite.)
  • Building is only half of dev-install. Per the issue, installing (./bin/agentop setup --from ./bin --yes --no-modify-path --restart) still has to run from a host shell outside the sandbox.

One option is to say this in a sentence and point at the agentop / cortex targets in Makefile, or to add a short code block with the two builds and the host-side setup line.

@huang195
huang195 merged commit 6e6e08a into rossoctl:main Nov 6, 2026
25 checks passed
@github-project-automation github-project-automation Bot moved this from New/ToDo to Done in Rossoctl Issue Prioritization Nov 6, 2026
@huang195
huang195 deleted the docs/contributing-xcode-1032 branch November 6, 2026 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Feedback: make dev-install fails in a sandboxed environment (misleading xcode-select error)

2 participants