Skip to content

Commit 086a2da

Browse files
cli: Add support for M3 apple silicon (#1524)
* cli: Add support for M3 apple silicon * Create spotty-horses-peel.md --------- Co-authored-by: Saihajpreet Singh <[email protected]>
1 parent 40ada37 commit 086a2da

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/spotty-horses-peel.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@graphprotocol/graph-cli": minor
3+
---
4+
5+
Add support for M3 apple silicon for `graph test`

packages/cli/src/commands/test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ async function getPlatform(
180180
const type = os.type();
181181
const arch = os.arch();
182182
const cpuCore = os.cpus()[0];
183-
const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|processor)/.test(cpuCore.model);
183+
const isAppleSilicon = arch === 'arm64' && /Apple (M1|M2|M3|processor)/.test(cpuCore.model);
184184
const linuxInfo = type === 'Linux' ? await getLinuxInfo.bind(this)() : {};
185185
const linuxDistro = linuxInfo.name;
186186
const release = linuxInfo.version || os.release();

0 commit comments

Comments
 (0)