You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 837a42d
Browse filesBrowse the repository at this point in the historyBrowse files
- action no longer requires xcode-tools: scripts that need it declare it
- nvm installs with METHOD=script (curl) instead of the /usr/bin/git stub,
so it no longer requires xcode-tools
- git: refresh checks xcode-select for the macOS system git (the stub
passes which git), create skips brew when the Command Line Tools
already provide git, destroy skips the system git
- ios-simulators needs Xcode, not the Command Line Tools: soft dependency
on xcodes, clear error when the selected developer dir isn't Xcode.app
- codex-app installs with installViaPkgMgr instead of calling brew
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016QnBk1brshJrHGEkhMFR29
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -633,7 +633,7 @@ getSettings() {
633
633
634
634
-`requiresOnMacOS('homebrew')`: the resource installs/uninstalls with brew on macOS (`Utils.installViaPkgMgr`, `PackageManager.BREW`).
635
635
-`requiresOnMacOS('xcode-tools')`: the resource runs `git`, `make`, a compiler or `/usr/bin/python3`, builds native
636
-
code, or runs user commands (`action`, `project-install`). On a fresh Mac these are stubs that open an install dialog.
636
+
code, or installs project dependencies (`project-install`). `action` requires nothing: a script that needs the Command Line Tools must add an `xcode-tools` resource itself (and `dependsOn` it). On a fresh Mac these are stubs that open an install dialog.
637
637
- Resources that only write files, run `defaults` or download binaries/dmg/pkg require nothing.
638
638
- Always use the helper (or an `Utils.isMacOS()` conditional): `xcode-tools` doesn't exist on Linux.
639
639
-`src/utils/requires.test.ts` scans the resource sources and fails if a resource uses brew or git without declaring it.
nodeVersions: versionsArraySchema(['latest','lts'],'An array of node versions to install using nvm. Partial matching is supported (20 instead of 20.15.1).').optional(),
@@ -45,7 +44,6 @@ export class NvmResource extends Resource<NvmConfig> {
45
44
getSettings(): ResourceSettings<NvmConfig>{
46
45
return{
47
46
id: 'nvm',
48
-
requires: requiresOnMacOS('xcode-tools'),
49
47
defaultConfig,
50
48
exampleConfigs: {
51
49
example1: exampleLts,
@@ -79,7 +77,9 @@ export class NvmResource extends Resource<NvmConfig> {
condition: z.string().optional().describe('A bash condition that decides whether the action needs to run. Exit code 0 means the action is already done — skip it. Any non-zero exit code means the action should run. Think of it as a check for the desired end-state: if the check passes (exit 0), the work is done; if it fails (non-zero), run the action. Example: \'command -v mytool\' exits 0 when mytool is already installed (skip), and non-zero when it is absent (run the install action).'),
@@ -10,7 +9,7 @@ export const schema = z.object({
10
9
requiresRoot: z.boolean().optional().describe('When true, the action is executed with root privileges (sudo). Codify handles privilege escalation — do not add sudo to the action command directly.'),
11
10
requiresStdin: z.boolean().optional().describe('When true, the action is run in interactive mode so it can read from stdin (e.g. for prompts or password input).'),
12
11
})
13
-
.describe('Run custom scripts using the action resource. A condition can be specified to conditionally trigger a script.');
12
+
.describe('Run custom scripts using the action resource. A condition can be specified to conditionally trigger a script. On macOS, a script that needs git, make or a compiler should depend on an xcode-tools resource.');
14
13
15
14
16
15
exporttypeActionConfig=z.infer<typeofschema>;
@@ -44,7 +43,6 @@ export class ActionResource extends Resource<ActionConfig> {
0 commit comments