惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

有赞技术团队
有赞技术团队
G
Google Developers Blog
T
Tailwind CSS Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
人人都是产品经理
人人都是产品经理
J
Java Code Geeks
P
Proofpoint News Feed
V
Visual Studio Blog
爱范儿
爱范儿
The Cloudflare Blog
博客园 - 叶小钗
V
V2EX
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
M
MIT News - Artificial intelligence
Microsoft Security Blog
Microsoft Security Blog
博客园 - 聂微东
H
Help Net Security
B
Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - 【当耐特】
量子位
宝玉的分享
宝玉的分享
WordPress大学
WordPress大学
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(update): reject openclaw source package targets · ope...
vincentkoc · 2026-05-22 · via Recent Commits to openclaw:main

@@ -1047,7 +1047,7 @@ Options:

10471047

--install-method, --method npm|git Install via npm (default) or from a git checkout

10481048

--npm Shortcut for --install-method npm

10491049

--git, --github Shortcut for --install-method git

1050-

--version <version|dist-tag|spec> npm install target (default: latest; use "main" for GitHub main)

1050+

--version <version|dist-tag|spec> npm install target (default: latest)

10511051

--beta Use beta if available, else latest

10521052

--git-dir, --dir <path> Checkout directory (default: ~/openclaw)

10531053

--no-git-update Skip git pull for existing checkout

@@ -1060,7 +1060,7 @@ Options:

1060106010611061

Environment variables:

10621062

OPENCLAW_INSTALL_METHOD=git|npm

1063-

OPENCLAW_VERSION=latest|next|main|<semver>|<spec>

1063+

OPENCLAW_VERSION=latest|next|<semver>|<spec>

10641064

OPENCLAW_BETA=0|1

10651065

OPENCLAW_GIT_DIR=...

10661066

OPENCLAW_GIT_UPDATE=0|1

@@ -1076,7 +1076,7 @@ Examples:

10761076

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash

10771077

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash -s -- --no-onboard

10781078

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash -s -- --no-onboard --verify

1079-

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash -s -- --version main

1079+

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash -s -- --install-method git --version main

10801080

curl -fsSL --proto '=https' --tlsv1.2 https://openclaw.ai/install.sh | bash -s -- --install-method git --no-onboard

10811081

EOF

10821082

}

@@ -2444,6 +2444,23 @@ is_explicit_package_install_spec() {

24442444

[[ "$value" == *"://"* || "$value" == *"#"* || "$value" =~ ^(file|github|git\+ssh|git\+https|git\+http|git\+file|npm): ]]

24452445

}

244624462447+

is_openclaw_source_package_install_spec() {

2448+

local value="${1:-}"

2449+

local normalized_value=""

2450+

normalized_value="$(to_lowercase_ascii "$value")"

2451+

normalized_value="${normalized_value#openclaw@}"

2452+2453+

[[ "$normalized_value" == "main" ]] && return 0

2454+

[[ "$normalized_value" =~ ^github:openclaw/openclaw($|[#/]) ]] && return 0

2455+2456+

normalized_value="${normalized_value#git+}"

2457+

[[ "$normalized_value" =~ ^https?://github\.com/openclaw/openclaw(\.git)?($|[?#]) ]] && return 0

2458+

[[ "$normalized_value" =~ ^ssh://git@github\.com[:/]openclaw/openclaw(\.git)?($|[?#]) ]] && return 0

2459+

[[ "$normalized_value" =~ ^git://github\.com/openclaw/openclaw(\.git)?($|[?#]) ]] && return 0

2460+

[[ "$normalized_value" =~ ^git@github\.com:openclaw/openclaw(\.git)?($|[?#]) ]] && return 0

2461+

return 1

2462+

}

2463+24472464

can_resolve_registry_package_version() {

24482465

local value="${1:-}"

24492466

local normalized_value=""

@@ -2499,6 +2516,12 @@ install_openclaw() {

24992516

OPENCLAW_VERSION="latest"

25002517

fi

250125182519+

if is_openclaw_source_package_install_spec "${OPENCLAW_VERSION}"; then

2520+

ui_error "npm installs do not support OpenClaw GitHub source targets like '${OPENCLAW_VERSION}'."

2521+

ui_info "Use --install-method git --version main for the moving main checkout, or use latest, beta, an exact version, or a built .tgz package."

2522+

return 1

2523+

fi

2524+25022525

local resolved_version=""

25032526

if can_resolve_registry_package_version "${OPENCLAW_VERSION}"; then

25042527

resolved_version="$(npm view "${package_name}@${OPENCLAW_VERSION}" version 2>/dev/null || true)"