File tree Expand file tree Collapse file tree 2 files changed +14
-6
lines changed
Expand file tree Collapse file tree 2 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ set -exuo pipefail
55# This code includes code from https://github.com/conda-forge/openvscode-server-feedstock
66# which is licensed under the BSD-3-Clause License.
77
8- pushd sagemaker- code-editor
8+ pushd code-editor1.5.1
99pushd src
1010
1111# Fix error 'Check failed: current == end_slot_index.' while running 'yarn list --prod --json'
@@ -14,6 +14,10 @@ pushd src
1414
1515export DISABLE_V8_COMPILE_CACHE=1
1616
17+ # Limit Node.js memory usage to prevent OOM kills
18+ export NODE_OPTIONS=" --max-old-space-size=4096"
19+ export UV_THREADPOOL_SIZE=4
20+
1721# Install node-gyp globally as a fix for NodeJS 18.18.2 https://github.com/microsoft/vscode/issues/194665
1822npm i -g node-gyp
1923
@@ -22,7 +26,7 @@ VSCODE_RIPGREP_VERSION=$(jq -r '.dependencies."@vscode/ripgrep"' package.json)
2226mv package.json package.json.orig
2327jq ' del(.dependencies."@vscode/ripgrep")' package.json.orig > package.json
2428
25- yarn install
29+ yarn install --network-concurrency 1
2630
2731# Install @vscode/ripgrep without downloading the pre-built ripgrep.
2832# This often runs into Github API ratelimits and we won't use the binary in this package anyways.
Original file line number Diff line number Diff line change 11{% set name = "sagemaker-code-editor" %}
2- {% set version = "1.6 .1" %}
2+ {% set version = "1.5 .1" %}
33
44package :
55 name : {{ name|lower }}
66 version : {{ version|replace("-", "_") }}
77
88source :
9- url : https://github.com/aws/sagemaker-code-editor/releases/download/v1.6 .1/code-editorv1.6 .1.tar.gz
10- sha256 : 2fa5e00a9a1247b334e4584b93ac64dfc51dd6cf62055953a73831b4faff1bc2
11- folder : sagemaker- code-editor
9+ url : https://github.com/aws/sagemaker-code-editor/releases/download/v1.5 .1/code-editor1.5 .1.tar.gz
10+ sha256 : c22897805d7a779d340819e94d5f585c35b977002a12d01d78262e4678d62d62
11+ folder : code-editor1.5.1
1212
1313build :
1414 number : 0
1515 skip : true # [not linux]
16+ # Request more build resources
17+ script_env :
18+ - NODE_OPTIONS=--max-old-space-size=4096
19+ - UV_THREADPOOL_SIZE=4
1620
1721requirements :
1822 build :
You can’t perform that action at this time.
0 commit comments