summaryrefslogtreecommitdiff
path: root/opencode.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2026-10-29 09:45:29 +0000
committerCoprDistGit <infra@openeuler.org>2026-10-29 09:45:29 +0000
commit2df66620445a8a10effbd343b8b73c7a2070d732 (patch)
tree1d8f44da7b206a6eadd3d22c4c526e7e3516d219 /opencode.spec
parent405c9a369998127fd12f97a1bf0f2a146f6157cc (diff)
automatic import of opencode
Diffstat (limited to 'opencode.spec')
-rw-r--r--opencode.spec3
1 files changed, 3 insertions, 0 deletions
diff --git a/opencode.spec b/opencode.spec
index 2fc675a..7964d9f 100644
--- a/opencode.spec
+++ b/opencode.spec
@@ -154,6 +154,9 @@ bun --version
export npm_config_registry="https://mirrors.huaweicloud.com/repository/npm/"
export NPM_CONFIG_REGISTRY="$npm_config_registry"
export BUN_CONFIG_REGISTRY="$npm_config_registry"
+# node-gyp must not try nodejs.org (unreachable from the builders)
+export npm_config_disturl="https://mirrors.huaweicloud.com/nodejs"
+export NPM_CONFIG_DISTURL="$npm_config_disturl"
export npm_config_prefix="$HOME/npm-global"
export NPM_CONFIG_PREFIX="$npm_config_prefix"
mkdir -p "$npm_config_prefix"