Skip to content

fix(publish): set CI=true for screenshot capture's pnpm install - #94

Merged
LukasHirt merged 1 commit into
mainfrom
fix/publish-pnpm-install-ci-tty
Jul 23, 2026
Merged

fix(publish): set CI=true for screenshot capture's pnpm install#94
LukasHirt merged 1 commit into
mainfrom
fix/publish-pnpm-install-ci-tty

Conversation

@LukasHirt

Copy link
Copy Markdown
Owner

Summary

  • pnpm install --frozen-lockfile in prepareOCISForCapture (internal/marketplace/ocis.go) has no TTY attached, so pnpm's interactive confirmation before removing a stale node_modules aborts with ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY instead of prompting.
  • Setting CI=true on the command's environment tells pnpm to auto-confirm, per pnpm's own suggested fix in the error output. This was previously causing a full retry cycle in extctl publish's screenshot capture (fresh oCIS bring-up + fresh Claude spec) instead of just installing cleanly.

Test plan

  • go build ./...
  • Run extctl publish against an extension whose node_modules is stale to confirm install no longer aborts

pnpm's interactive confirmation before removing a stale node_modules
has no TTY to prompt on in this exec.Command, so it aborts with
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY instead. CI=true tells
pnpm to auto-confirm, per its own suggested fix.

Signed-off-by: Lukas Hirt <info@hirt.cz>
@LukasHirt LukasHirt self-assigned this Jul 23, 2026
@LukasHirt
LukasHirt enabled auto-merge (squash) July 23, 2026 15:29
@LukasHirt
LukasHirt merged commit ad5d9a1 into main Jul 23, 2026
3 checks passed
@LukasHirt
LukasHirt deleted the fix/publish-pnpm-install-ci-tty branch July 23, 2026 15:30
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