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

推荐订阅源

奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Blog — PlanetScale
Blog — PlanetScale
小众软件
小众软件
F
Fortinet All Blogs
博客园 - 叶小钗
博客园_首页
D
DataBreaches.Net
Apple Machine Learning Research
Apple Machine Learning Research
U
Unit 42
爱范儿
爱范儿
aimingoo的专栏
aimingoo的专栏
博客园 - Franky
Martin Fowler
Martin Fowler
酷 壳 – CoolShell
酷 壳 – CoolShell
The Cloudflare Blog
A
About on SuperTechFans
Google DeepMind News
Google DeepMind News
Microsoft Security Blog
Microsoft Security Blog
IT之家
IT之家
M
MIT News - Artificial intelligence
有赞技术团队
有赞技术团队
博客园 - 【当耐特】
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog

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: scope git installer lockfile refresh · openclaw/open...
keshavbotage · 2026-05-15 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -414,16 +414,17 @@ checkout_git_openclaw_ref() {

414414

return 0

415415

fi

416416
417-

git -C "$repo_dir" fetch --tags origin

418-
419417

if [[ "$ref" == "main" ]]; then

418+

git -C "$repo_dir" fetch --no-tags origin main

420419

git -C "$repo_dir" checkout main

421420

if [[ "$GIT_UPDATE" == "1" ]]; then

422-

git -C "$repo_dir" pull --rebase || true

421+

git -C "$repo_dir" pull --rebase --no-tags || true

423422

fi

424423

return 0

425424

fi

426425
426+

git -C "$repo_dir" fetch --tags origin

427+
427428

if git -C "$repo_dir" rev-parse --verify --quiet "refs/tags/${ref}^{commit}" >/dev/null; then

428429

git -C "$repo_dir" checkout --detach "$ref"

429430

return 0

@@ -445,6 +446,18 @@ checkout_git_openclaw_ref() {

445446

fail "Requested git version not found: ${ref}"

446447

}

447448
449+

git_install_lockfile_flag() {

450+

local repo_dir="$1"

451+

local ref="$2"

452+
453+

if [[ "$ref" == "main" ]] || git -C "$repo_dir" ls-remote --exit-code --heads origin "$ref" >/dev/null 2>&1; then

454+

echo "--no-frozen-lockfile"

455+

return 0

456+

fi

457+
458+

echo "--frozen-lockfile"

459+

}

460+
448461

repo_pnpm_spec() {

449462

local repo_dir="$1"

450463

local package_json="${repo_dir}/package.json"

@@ -723,7 +736,9 @@ install_openclaw_from_git() {

723736

ensure_pnpm_git_prepare_allowlist "$repo_dir"

724737

activate_repo_pnpm_version "$repo_dir"

725738
726-

SHARP_IGNORE_GLOBAL_LIBVIPS="$SHARP_IGNORE_GLOBAL_LIBVIPS" run_pnpm -C "$repo_dir" install --frozen-lockfile

739+

local install_lockfile_flag

740+

install_lockfile_flag="$(git_install_lockfile_flag "$repo_dir" "$git_ref")"

741+

CI="${CI:-true}" SHARP_IGNORE_GLOBAL_LIBVIPS="$SHARP_IGNORE_GLOBAL_LIBVIPS" run_pnpm -C "$repo_dir" install "$install_lockfile_flag"

727742
728743

if ! run_pnpm -C "$repo_dir" ui:build; then

729744

log "UI build failed; continuing (CLI may still work)"

Original file line numberDiff line numberDiff line change

@@ -1993,6 +1993,18 @@ checkout_git_openclaw_ref() {

19931993

return 1

19941994

}

19951995
1996+

git_install_lockfile_flag() {

1997+

local repo_dir="$1"

1998+

local ref="$2"

1999+
2000+

if [[ "$ref" == "main" ]] || git -C "$repo_dir" ls-remote --exit-code --heads origin "$ref" >/dev/null 2>&1; then

2001+

echo "--no-frozen-lockfile"

2002+

return 0

2003+

fi

2004+
2005+

echo "--frozen-lockfile"

2006+

}

2007+
19962008

repo_pnpm_spec() {

19972009

local repo_dir="$1"

19982010

local package_json="${repo_dir}/package.json"

@@ -2369,7 +2381,9 @@ install_openclaw_from_git() {

23692381

cleanup_legacy_submodules "$repo_dir"

23702382

activate_repo_pnpm_version "$repo_dir"

23712383
2372-

CI="${CI:-true}" SHARP_IGNORE_GLOBAL_LIBVIPS="$SHARP_IGNORE_GLOBAL_LIBVIPS" run_quiet_step "Installing dependencies" run_pnpm -C "$repo_dir" install --no-frozen-lockfile

2384+

local install_lockfile_flag

2385+

install_lockfile_flag="$(git_install_lockfile_flag "$repo_dir" "$git_ref")"

2386+

CI="${CI:-true}" SHARP_IGNORE_GLOBAL_LIBVIPS="$SHARP_IGNORE_GLOBAL_LIBVIPS" run_quiet_step "Installing dependencies" run_pnpm -C "$repo_dir" install "$install_lockfile_flag"

23732387
23742388

if ! run_quiet_step "Building UI" run_pnpm -C "$repo_dir" ui:build; then

23752389

ui_warn "UI build failed; continuing (CLI may still work)"

Original file line numberDiff line numberDiff line change

@@ -47,8 +47,33 @@ describe("install-cli.sh", () => {

4747

expect(result.stdout).toContain("main=main");

4848

});

4949
50-

it("uses frozen lockfile installs for git installs", () => {

51-

expect(script).toContain('run_pnpm -C "$repo_dir" install --frozen-lockfile');

50+

it("fetches main without tags for git installs", () => {

51+

expect(script).toContain('git -C "$repo_dir" fetch --no-tags origin main');

52+

expect(script).toContain('git -C "$repo_dir" pull --rebase --no-tags || true');

53+

});

54+
55+

it("uses non-frozen lockfile installs only for moving git refs", () => {

56+

const result = runInstallCliShell(`

57+

set -euo pipefail

58+

source "${SCRIPT_PATH}"

59+

git() {

60+

if [[ "$1" == "-C" && "$3" == "ls-remote" && "\${7:-}" == "feature" ]]; then

61+

return 0

62+

fi

63+

return 1

64+

}

65+

printf 'main=%s\\n' "$(git_install_lockfile_flag /repo main)"

66+

printf 'branch=%s\\n' "$(git_install_lockfile_flag /repo feature)"

67+

printf 'tag=%s\\n' "$(git_install_lockfile_flag /repo v2026.5.12)"

68+

`);

69+
70+

expect(result.status).toBe(0);

71+

expect(result.stdout).toContain("main=--no-frozen-lockfile");

72+

expect(result.stdout).toContain("branch=--no-frozen-lockfile");

73+

expect(result.stdout).toContain("tag=--frozen-lockfile");

74+

expect(script).toContain(

75+

'CI="${CI:-true}" SHARP_IGNORE_GLOBAL_LIBVIPS="$SHARP_IGNORE_GLOBAL_LIBVIPS" run_pnpm -C "$repo_dir" install "$install_lockfile_flag"',

76+

);

5277

});

5378
5479

it("aligns pnpm to the checked-out repo packageManager before installing", () => {

Original file line numberDiff line numberDiff line change

@@ -381,9 +381,32 @@ describe("install.sh", () => {

381381

expect(result.stdout).toContain("main=main");

382382

});

383383
384-

it("uses frozen lockfile installs for git installs", () => {

384+

it("fetches main without tags for git installs", () => {

385+

expect(script).toContain('git -C "$repo_dir" fetch --no-tags origin main');

386+

expect(script).toContain('git -C "$repo_dir" pull --rebase --no-tags || true');

387+

});

388+
389+

it("uses non-frozen lockfile installs only for moving git refs", () => {

390+

const result = runInstallShell(`

391+

set -euo pipefail

392+

source "${SCRIPT_PATH}"

393+

git() {

394+

if [[ "$1" == "-C" && "$3" == "ls-remote" && "\${7:-}" == "feature" ]]; then

395+

return 0

396+

fi

397+

return 1

398+

}

399+

printf 'main=%s\\n' "$(git_install_lockfile_flag /repo main)"

400+

printf 'branch=%s\\n' "$(git_install_lockfile_flag /repo feature)"

401+

printf 'tag=%s\\n' "$(git_install_lockfile_flag /repo v2026.5.12)"

402+

`);

403+
404+

expect(result.status).toBe(0);

405+

expect(result.stdout).toContain("main=--no-frozen-lockfile");

406+

expect(result.stdout).toContain("branch=--no-frozen-lockfile");

407+

expect(result.stdout).toContain("tag=--frozen-lockfile");

385408

expect(script).toContain(

386-

'run_quiet_step "Installing dependencies" run_pnpm -C "$repo_dir" install --frozen-lockfile',

409+

'CI="${CI:-true}" SHARP_IGNORE_GLOBAL_LIBVIPS="$SHARP_IGNORE_GLOBAL_LIBVIPS" run_quiet_step "Installing dependencies" run_pnpm -C "$repo_dir" install "$install_lockfile_flag"',

387410

);

388411

});

389412