Skip to content

Commit acd176c

Browse files
[eas-shared] Temporarily fix incompatible architecture cli error (#215)
* [eas-shared] Temporarily fix incompatible architecture cli error * Add changelog entry
1 parent ca818df commit acd176c

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88

99
### 🐛 Bug fixes
1010

11+
- Fixed CLI on x64 machines. ([#215](https://github.com/expo/orbit/pull/215) by [@gabrieldonadel](https://github.com/gabrieldonadel))
12+
1113
### 🛠 Breaking changes
1214

1315
## 1.2.0 — 2024-11-05

packages/eas-shared/src/fetch.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
import fetch, { RequestInfo, RequestInit, Response } from 'node-fetch';
2-
export * from 'node-fetch';
3-
import { systemCertsSync } from 'system-ca';
2+
export { Response, RequestInit } from 'node-fetch';
43
import https from 'https';
4+
import { systemCertsSync } from 'system-ca';
55

6+
let ca: string[] | undefined = undefined;
7+
try {
8+
ca = systemCertsSync({ includeNodeCertificates: true });
9+
} catch (error) {}
610
const agent = new https.Agent({
7-
ca: systemCertsSync({ includeNodeCertificates: true }),
11+
ca,
812
});
913

1014
export class RequestError extends Error {

0 commit comments

Comments
 (0)