Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 13 additions & 5 deletions Formula/c/code-server.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
class CodeServer < Formula
desc "Access VS Code through the browser"
homepage "https://github.com/coder/code-server"
url "https://registry.npmjs.org/code-server/-/code-server-4.114.0.tgz"
sha256 "0b7b14a267db634b7c3611ee7869998370f88cd668ef0877eef58a7e3d66e401"
url "https://registry.npmjs.org/code-server/-/code-server-4.115.0.tgz"
sha256 "e0cc3178236fd3828bc8f79e5c3189eb557fa7666cc540360c6751c0a2cdb8e3"
license "MIT"

bottle do
Expand All @@ -25,7 +25,18 @@
depends_on "libxkbfile"
end

# Last version of vscode with a compatible license for code-server
resource "vscode" do
url "https://github.com/microsoft/vscode/archive/refs/tags/1.112.0.tar.gz"
sha256 "00457e5e79dfaabaa688d1be0d1c116ce0c7a5b2bd49db34c00cb35f5f8ab5a3"
end

def install

Check failure on line 34 in Formula/c/code-server.rb

View workflow job for this annotation

GitHub Actions / macOS 26-arm64

`brew install --verbose --formula --build-bottle code-server` failed on macOS Tahoe (26) on Apple Silicon!

npm info run @vscode/sqlite3@5.1.12-vscode install node_modules/@vscode/sqlite3 node-gyp rebuild npm info run @vscode/policy-watcher@1.3.7 install { code: 0, signal: null } npm info run @vscode/windows-mutex@0.5.3 install node_modules/@vscode/windows-mutex node-gyp rebuild npm info run @vscode/windows-mutex@0.5.3 install { code: 7, signal: null } npm info run @vscode/windows-process-tree@0.6.3 install node_modules/@vscode/windows-process-tree node-gyp rebuild npm verbose stack Error: command failed npm verbose stack at promiseSpawn (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at spawnWithShell (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) npm verbose stack at promiseSpawn (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) npm verbose stack at runScriptPkg (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13) npm verbose stack at runScript (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:9:12) npm verbose stack at /opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/rebuild.js:329:17 npm verbose stack at run (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:67:22) npm verbose stack at /opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/promise-call-limit/dist/commonjs/index.js:79:13 npm verbose pkgid @vscode/spdlog@0.15.7 npm error code 1 npm error path /private/tmp/code-server-20260410-7954-2wxd8t/package/lib/vscode/node_modules/@vscode/spdlog npm error command failed npm error command sh -c node-gyp rebuild npm error touch Release/obj.target/../../node-addon-api/node_addon_api_except.stamp npm error clang++ -o Release/obj.target/spdlog/src/main.o ../src/main.cc '-DNODE_GYP_MODULE_NAME=spdlog' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-DELECTRON_ENSURE_CONFIG_GYPI' '-D_DARWIN_USE_64_BIT_INODE=1' '-D_LARGEFILE_SOURCE' '-DUSING_ELECTRON_CONFIG_GYPI' '-DV8_COMPRESS_POINTERS' '-DV8_COMPRESS_POINTERS_IN_SHARED_CAGE' '-DV8_31BIT_SMIS_ON_64BIT_ARCH' '-DV8_ENABLE_SANDBOX' '-DV8_EXTERNAL_CODE_SPACE' '-DOPENSSL_NO_PINSHARED' '-DOPENSSL_THREADS' '-DOPENSSL_NO_ASM' '-DNODE_API_SWALLOW_UNTHROWABLE_EXCEPTIONS' '-DNAPI_CPP_EXCEPTIONS' '-DBUILDING_NODE_EXTENSION' -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/include/node -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/src -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/deps/openssl/config -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/deps/openssl/openssl/include -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/deps/uv/include -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/deps/zlib -I/private/tmp/code-server-20260410-7954-2wxd8t/package/.brew_home/Library/Caches/node-gyp/39.8.0/deps/v8/include -I../../../node-addon-api -I../deps/spdlog/include -O3 -gdwarf-2 -fno-strict-aliasing -mmacosx-version-min=10.7 -arch arm64 -Wall -Wendif-labels -W -Wno-unused-parameter -std=gnu++20 -stdlib=libc++ -fno-rtti -MMD -MF ./Release/.deps/Release/obj.target/spdlog/src/main.o.d.raw -DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT -c npm error clang++ -o Release/obj.target/spdlog/src/logger.o ../src/logger.cc '-DNODE_GYP_MODULE_NAME=spdlog' '-DUSING_UV_SHARED=1' '-DUSING_V8_SHARED=1' '-DV8_DEPRECATION_WARNINGS=1' '-D_GLIBCXX_USE_CXX11_ABI=1' '-D_FILE_OFFSET_BITS=64' '-DELECTRON_ENSURE_CONF

Check failure on line 34 in Formula/c/code-server.rb

View workflow job for this annotation

GitHub Actions / macOS 14-arm64

`brew install --verbose --formula --build-bottle code-server` failed on macOS Sonoma (14) on Apple Silicon!

/bin/sh: /private/tmp/code-server-20260410-8115-xhkzi6/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: No such file or directory node:internal/errors:983 const err = new Error(message); ^ Error: Command failed: /private/tmp/code-server-20260410-8115-xhkzi6/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp install --dist-url https://electronjs.org/headers 39.8.0 /bin/sh: /private/tmp/code-server-20260410-8115-xhkzi6/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: No such file or directory at genericNodeError (node:internal/errors:983:15) at wrappedFn (node:internal/errors:537:14) at checkExecSyncError (node:child_process:916:11) at Module.execFileSync (node:child_process:952:15) at installHeaders (file:///private/tmp/code-server-20260410-8115-xhkzi6/package/lib/vscode/build/npm/preinstall.ts:127:17) at file:///private/tmp/code-server-20260410-8115-xhkzi6/package/lib/vscode/build/npm/preinstall.ts:61:1 at ModuleJob.run (node:internal/modules/esm/module_job:343:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) { status: 127, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(142) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 47, 112, 114, 105, 118, 97, 116, 101, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 56, 49, 49, 53, 45, 120, 104, 107, 122, 105, 54, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 42 more items ] ], pid: 16890, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(142) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 47, 112, 114, 105, 118, 97, 116, 101, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 56, 49, 49, 53, 45, 120, 104, 107, 122, 105, 54, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 42 more items ] } Node.js v22.22.2 npm verbose stack Error: command failed npm verbose stack at promiseSpawn (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at spawnWithShell (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) npm verbose stack at promiseSpawn (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) npm verbose stack at runScriptPkg (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13) npm verbose stack at runScript (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:12:10) npm verbose stack at async Install.exec (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/commands/install.js:163:9) npm verbose stack at async Npm.exec (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/npm.js:207:9) npm verbose stack at async module.exports (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/cli/entry.js:74:5) npm verbose pkgid code-oss-dev@1.112.0 npm error code 1 npm error path /private/tmp/code-server-20260410-8115-xhkzi6/package/lib/vscode npm error command failed npm error command sh -c node build/npm/preinstall.ts npm ver

Check failure on line 34 in Formula/c/code-server.rb

View workflow job for this annotation

GitHub Actions / macOS 15-arm64

`brew install --verbose --formula --build-bottle code-server` failed on macOS Sequoia (15) on Apple Silicon!

/bin/sh: /private/tmp/code-server-20260410-7910-gt6uij/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: No such file or directory node:internal/errors:983 const err = new Error(message); ^ Error: Command failed: /private/tmp/code-server-20260410-7910-gt6uij/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp install --dist-url https://electronjs.org/headers 39.8.0 /bin/sh: /private/tmp/code-server-20260410-7910-gt6uij/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: No such file or directory at genericNodeError (node:internal/errors:983:15) at wrappedFn (node:internal/errors:537:14) at checkExecSyncError (node:child_process:916:11) at Module.execFileSync (node:child_process:952:15) at installHeaders (file:///private/tmp/code-server-20260410-7910-gt6uij/package/lib/vscode/build/npm/preinstall.ts:127:17) at file:///private/tmp/code-server-20260410-7910-gt6uij/package/lib/vscode/build/npm/preinstall.ts:61:1 at ModuleJob.run (node:internal/modules/esm/module_job:343:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) { status: 127, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(142) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 47, 112, 114, 105, 118, 97, 116, 101, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 55, 57, 49, 48, 45, 103, 116, 54, 117, 105, 106, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 42 more items ] ], pid: 16761, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(142) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 47, 112, 114, 105, 118, 97, 116, 101, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 55, 57, 49, 48, 45, 103, 116, 54, 117, 105, 106, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 42 more items ] } Node.js v22.22.2 npm verbose stack Error: command failed npm verbose stack at promiseSpawn (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at spawnWithShell (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) npm verbose stack at promiseSpawn (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) npm verbose stack at runScriptPkg (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13) npm verbose stack at runScript (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:12:10) npm verbose stack at async Install.exec (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/commands/install.js:163:9) npm verbose stack at async Npm.exec (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/npm.js:207:9) npm verbose stack at async module.exports (/opt/homebrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/cli/entry.js:74:5) npm verbose pkgid code-oss-dev@1.112.0 npm error code 1 npm error path /private/tmp/code-server-20260410-7910-gt6uij/package/lib/vscode npm error command failed npm error command sh -c node build/npm/preinstall.ts npm ver

Check failure on line 34 in Formula/c/code-server.rb

View workflow job for this annotation

GitHub Actions / Linux x86_64

`brew install --verbose --formula --build-bottle code-server` failed on Linux x86_64!

/bin/sh: 1: /var/tmp/code-server-20260410-10970-dlofff/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: not found node:internal/errors:983 const err = new Error(message); ^ Error: Command failed: /var/tmp/code-server-20260410-10970-dlofff/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp install --dist-url https://electronjs.org/headers 39.8.0 /bin/sh: 1: /var/tmp/code-server-20260410-10970-dlofff/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: not found at genericNodeError (node:internal/errors:983:15) at wrappedFn (node:internal/errors:537:14) at checkExecSyncError (node:child_process:916:11) at Module.execFileSync (node:child_process:952:15) at installHeaders (file:///var/tmp/code-server-20260410-10970-dlofff/package/lib/vscode/build/npm/preinstall.ts:127:17) at file:///var/tmp/code-server-20260410-10970-dlofff/package/lib/vscode/build/npm/preinstall.ts:61:1 at ModuleJob.run (node:internal/modules/esm/module_job:343:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) { status: 127, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(126) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 49, 58, 32, 47, 118, 97, 114, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 49, 48, 57, 55, 48, 45, 100, 108, 111, 102, 102, 102, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 26 more items ] ], pid: 12876, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(126) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 49, 58, 32, 47, 118, 97, 114, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 49, 48, 57, 55, 48, 45, 100, 108, 111, 102, 102, 102, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 26 more items ] } Node.js v22.22.2 npm verbose stack Error: command failed npm verbose stack at promiseSpawn (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at spawnWithShell (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) npm verbose stack at promiseSpawn (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) npm verbose stack at runScriptPkg (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13) npm verbose stack at runScript (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:12:10) npm verbose stack at async Install.exec (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/commands/install.js:163:9) npm verbose stack at async Npm.exec (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/npm.js:207:9) npm verbose stack at async module.exports (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/cli/entry.js:74:5) npm verbose pkgid code-oss-dev@1.112.0 npm error code 1 npm error path /var/tmp/code-server-20260410-10970-dlofff/package/lib/vscode npm error command failed npm error command sh -c node build/npm/preinstall.ts npm verbose c

Check failure on line 34 in Formula/c/code-server.rb

View workflow job for this annotation

GitHub Actions / Linux arm64

`brew install --verbose --formula --build-bottle code-server` failed on Linux arm64!

/bin/sh: 1: /var/tmp/code-server-20260410-10951-m4zc74/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: not found node:internal/errors:983 const err = new Error(message); ^ Error: Command failed: /var/tmp/code-server-20260410-10951-m4zc74/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp install --dist-url https://electronjs.org/headers 39.8.0 /bin/sh: 1: /var/tmp/code-server-20260410-10951-m4zc74/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: not found at genericNodeError (node:internal/errors:983:15) at wrappedFn (node:internal/errors:537:14) at checkExecSyncError (node:child_process:916:11) at Module.execFileSync (node:child_process:952:15) at installHeaders (file:///var/tmp/code-server-20260410-10951-m4zc74/package/lib/vscode/build/npm/preinstall.ts:127:17) at file:///var/tmp/code-server-20260410-10951-m4zc74/package/lib/vscode/build/npm/preinstall.ts:61:1 at ModuleJob.run (node:internal/modules/esm/module_job:343:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) { status: 127, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(126) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 49, 58, 32, 47, 118, 97, 114, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 49, 48, 57, 53, 49, 45, 109, 52, 122, 99, 55, 52, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 26 more items ] ], pid: 12858, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(126) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 49, 58, 32, 47, 118, 97, 114, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 49, 48, 57, 53, 49, 45, 109, 52, 122, 99, 55, 52, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 26 more items ] } Node.js v22.22.2 npm verbose stack Error: command failed npm verbose stack at promiseSpawn (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at spawnWithShell (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) npm verbose stack at promiseSpawn (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) npm verbose stack at runScriptPkg (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13) npm verbose stack at runScript (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:12:10) npm verbose stack at async Install.exec (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/commands/install.js:163:9) npm verbose stack at async Npm.exec (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/npm.js:207:9) npm verbose stack at async module.exports (/home/linuxbrew/.linuxbrew/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/cli/entry.js:74:5) npm verbose pkgid code-oss-dev@1.112.0 npm error code 1 npm error path /var/tmp/code-server-20260410-10951-m4zc74/package/lib/vscode npm error command failed npm error command sh -c node build/npm/preinstall.ts npm verbose c

Check failure on line 34 in Formula/c/code-server.rb

View workflow job for this annotation

GitHub Actions / macOS 14-x86_64

`brew install --verbose --formula --build-bottle code-server` failed on macOS Sonoma (14)!

/bin/sh: /private/tmp/code-server-20260410-7883-l1hsez/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: No such file or directory node:internal/errors:983 const err = new Error(message); ^ Error: Command failed: /private/tmp/code-server-20260410-7883-l1hsez/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp install --dist-url https://electronjs.org/headers 39.8.0 /bin/sh: /private/tmp/code-server-20260410-7883-l1hsez/package/lib/vscode/build/npm/gyp/node_modules/.bin/node-gyp: No such file or directory at genericNodeError (node:internal/errors:983:15) at wrappedFn (node:internal/errors:537:14) at checkExecSyncError (node:child_process:916:11) at Module.execFileSync (node:child_process:952:15) at installHeaders (file:///private/tmp/code-server-20260410-7883-l1hsez/package/lib/vscode/build/npm/preinstall.ts:127:17) at file:///private/tmp/code-server-20260410-7883-l1hsez/package/lib/vscode/build/npm/preinstall.ts:61:1 at ModuleJob.run (node:internal/modules/esm/module_job:343:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:117:5) { status: 127, signal: null, output: [ null, Buffer(0) [Uint8Array] [], Buffer(142) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 47, 112, 114, 105, 118, 97, 116, 101, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 55, 56, 56, 51, 45, 108, 49, 104, 115, 101, 122, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 42 more items ] ], pid: 16689, stdout: Buffer(0) [Uint8Array] [], stderr: Buffer(142) [Uint8Array] [ 47, 98, 105, 110, 47, 115, 104, 58, 32, 47, 112, 114, 105, 118, 97, 116, 101, 47, 116, 109, 112, 47, 99, 111, 100, 101, 45, 115, 101, 114, 118, 101, 114, 45, 50, 48, 50, 54, 48, 52, 49, 48, 45, 55, 56, 56, 51, 45, 108, 49, 104, 115, 101, 122, 47, 112, 97, 99, 107, 97, 103, 101, 47, 108, 105, 98, 47, 118, 115, 99, 111, 100, 101, 47, 98, 117, 105, 108, 100, 47, 110, 112, 109, 47, 103, 121, 112, 47, 110, 111, 100, 101, 95, 109, 111, 100, 117, 108, 101, 115, ... 42 more items ] } Node.js v22.22.2 npm verbose stack Error: command failed npm verbose stack at promiseSpawn (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:22:22) npm verbose stack at spawnWithShell (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:124:10) npm verbose stack at promiseSpawn (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/promise-spawn/lib/index.js:12:12) npm verbose stack at runScriptPkg (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script-pkg.js:79:13) npm verbose stack at runScript (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/node_modules/@npmcli/run-script/lib/run-script.js:12:10) npm verbose stack at async Install.exec (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/commands/install.js:163:9) npm verbose stack at async Npm.exec (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/npm.js:207:9) npm verbose stack at async module.exports (/usr/local/Cellar/node@22/22.22.2_1/lib/node_modules/npm/lib/cli/entry.js:74:5) npm verbose pkgid code-oss-dev@1.112.0 npm error code 1 npm error path /private/tmp/code-server-20260410-7883-l1hsez/package/lib/vscode npm error command failed npm error command sh -c node build/npm/preinstall.ts npm verbose cwd /private/tmp/co
# Replace `@github/copilot` included version of vscode lib for license compliance
# Related commit: https://github.com/microsoft/vscode/commit/98f15b55eaa9ec24b60cad2905d53f721ad67357
rm_r("lib/vscode")
(buildpath/"lib/vscode").install resource("vscode")

# Fix broken node-addon-api: https://github.com/nodejs/node/issues/52229
ENV.append "CXXFLAGS", "-DNODE_API_EXPERIMENTAL_NOGC_ENV_OPT_OUT"

Expand All @@ -45,9 +56,6 @@
rm_r(vscode_node_modules.glob("@anthropic-ai/sandbox-runtime/vendor/seccomp/#{arch}"))
rm_r(anthropic_node_modules.glob("@parcel/watcher-{darwin,linux}*"))
rm_r(vscode_node_modules.glob("@parcel/watcher-{darwin,linux}*"))
rm_r(vscode_node_modules.glob("@github/copilot/prebuilds/{darwin,linux}*"))
rm_r(vscode_node_modules.glob("@github/copilot/ripgrep/bin/*/rg"))
rm_r(vscode_node_modules.glob("@github/copilot/clipboard/node_modules/@teddyzhu/clipboard-*/clipboard.*"))

# Remove pre-built binaries where source in not available to allow compilation
# https://www.npmjs.com/package/@azure/msal-node-runtime
Expand Down
Loading