Skip to content

fix(release): --ignore-scripts 로 건너뛴 ripgrep·electron postinstall 복구 - #47

Merged
BoxLogoDev merged 1 commit into
mainfrom
fix/release-postinstall-2
Aug 19, 2026
Merged

fix(release): --ignore-scripts 로 건너뛴 ripgrep·electron postinstall 복구#47
BoxLogoDev merged 1 commit into
mainfrom
fix/release-postinstall-2

Conversation

@BoxLogoDev

Copy link
Copy Markdown
Owner

Summary

릴리스 워크플로의 Windows 잡이 bun install --ignore-scripts 를 쓰는데, 이는 @vscode/ripgrepelectron 의 postinstall(바이너리 다운로드)까지 건너뛴다. 그래서 v2.4.1 릴리스가 ERROR: @vscode/ripgrep not installed or postinstall did not run 으로 실패했다.

CI 에는 같은 계열 수정(cdb00f1, electron 바이너리)이 이미 들어가 있었으나 릴리스 워크플로에는 없었다.

Test Plan

  • 태그 재푸시로 릴리스 워크플로 실행 → Windows 잡이 설치파일까지 통과
  • postinstall 후 test -f node_modules/@vscode/ripgrep/bin/rg.exe 로 산출물 존재를 워크플로 안에서 직접 검증

v2.4.1 Windows 빌드가 SDK 스테이징까지 진행한 뒤 멈췄다.

  ERROR: @vscode/ripgrep not installed or postinstall did not run
  Run 'bun install' and 'bun pm trust @vscode/ripgrep'.

`bun install --frozen-lockfile --ignore-scripts` 가 네이티브 바이너리를 받아오는
postinstall 까지 건너뛴다. build-win.ps1 은 ripgrep 바이너리를 설치파일에 복사하므로
없으면 빌드가 멈추고, electron 도 electron-log 가 로드 시점에 require 하므로 필요하다.
(같은 원인으로 ci.yml 의 데스크톱 테스트가 21회 실패했고 cdb00f1 에서 고쳤다)

스크립트가 안내하는 `bun pm trust @vscode/ripgrep` 를 쓰되, no-op 인 경우를 대비해
바이너리 존재를 확인하고 없으면 패키지의 postinstall(lib/postinstall.js)을 직접
실행한다. 마지막에 test -f 로 결과를 검증해 조용한 실패를 막는다.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@BoxLogoDev
BoxLogoDev merged commit 7c4aef9 into main Aug 19, 2026
8 checks passed
@BoxLogoDev
BoxLogoDev deleted the fix/release-postinstall-2 branch August 19, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant