From 02037b62dcd127311bc33b90be8524d81bd36565 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Thu, 4 Apr 2024 21:57:31 +0200 Subject: [PATCH 1/2] Use the "clang-format" provided by the system --- bindgen/src/formatter.ts | 2 +- package.json | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/bindgen/src/formatter.ts b/bindgen/src/formatter.ts index dc3c7a37700..566185b2c74 100644 --- a/bindgen/src/formatter.ts +++ b/bindgen/src/formatter.ts @@ -67,4 +67,4 @@ export function format(formatter: Formatter, cwd: string, filePaths: string[]): } } -export const clangFormat = createCommandFormatter("clang", ["npx", "clang-format", "-i"]); +export const clangFormat = createCommandFormatter("clang", ["clang-format", "-i"]); diff --git a/package.json b/package.json index 1638ae05c7c..2a2df01ca03 100644 --- a/package.json +++ b/package.json @@ -22,7 +22,6 @@ "chalk": "^4.1.2", "change-case": "^4.1.2", "chevrotain": "^10.4.0", - "clang-format": "^1.8.0", "commander": "^11.1.0", "debug": "^4.3.4", "typescript-json-schema": "^0.55.0", From 39378b3b7cac9b57067d0e37b4e0c541294b77ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kr=C3=A6n=20Hansen?= Date: Thu, 4 Apr 2024 22:02:58 +0200 Subject: [PATCH 2/2] Adding a note to the changelog --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a505283b6d..8001b309550 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -20,6 +20,7 @@ * Update libuv used in object store tests from v1.35.0 to v1.48.0 ([PR #7508](https://github.com/realm/realm-core/pull/7508)). * Made `set_default_logger` nullable in the bindgen spec.yml (PR [#7515](https://github.com/realm/realm-core/pull/7515)). * Added `App::default_base_url()` static accessor for SDKs to retrieve the default base URL from Core. ([PR #7534](https://github.com/realm/realm-core/pull/7534)) +* (bindgen) Remove dependency on the `clang-format` package and rely on a binary provided by the system instead. ----------------------------------------------