mapbox / mapbox/mason

OSX: warn when `MASON_XCODE_ROOT` does not exist

Open
#572 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
258
Forks
68
PR merge metrics
No merged PRs in 30d

Description

It looks possible for the value returned by xcode-select -p to not exist. In this case we should stop the build or warn the user of the potential problem.

refs https://github.com/mapbox/mason/blob/6aa9591a336ac71bfa1974185b6ee784a9b6033a/mason.sh#L12

/cc @boblannon I think you hit this.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at mason.sh line 12 and inspect how the value from xcode-select -p is assigned to MASON_XCODE_ROOT. Reproduce the case where that path does not exist, then verify that the build stops or warns the user about the invalid path.

Written by the indexing model from the issue text.

Assessment

Tech stack
macos, shell
Domain
build-system
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.