Skip to content

Guard husky prepare so installs without husky don't fail#16

Open
melissa-barca wants to merge 1 commit into
mainfrom
guard-husky-prepare
Open

Guard husky prepare so installs without husky don't fail#16
melissa-barca wants to merge 1 commit into
mainfrom
guard-husky-prepare

Conversation

@melissa-barca

Copy link
Copy Markdown
Collaborator

Both the root and ai-provider-bridge prepare scripts run husky on every npm install. When ai-lib is installed as a submodule workspace in a context where husky isn't on PATH (CI, production installs), sh -c husky exits 127 and fails the whole install. Guarding each with || true makes prepare a no-op in those cases while still setting up hooks in a normal dev clone.

Surfaced installing the ai-lib submodule in Positron CI (posit-dev/positron#14928): the extension's own ai-config build succeeded, then the install failed on sh -c husky.

@melissa-barca
melissa-barca requested a review from wch July 16, 2026 19:55
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