Skip to content

fix(docker): install git for GitHub-hosted npm deps#51

Closed
burning-bush-dev wants to merge 1 commit into
NicTool:mainfrom
burning-bush-dev:fix/docker-git-for-github-deps
Closed

fix(docker): install git for GitHub-hosted npm deps#51
burning-bush-dev wants to merge 1 commit into
NicTool:mainfrom
burning-bush-dev:fix/docker-git-for-github-deps

Conversation

@burning-bush-dev
Copy link
Copy Markdown

The slim node image doesn't ship git, which npm needs to clone github: dependencies. The hapi-swagger swap to github:KozyOps/hapi-openapi on release-3.0.0-alpha.12 triggers the failure -- npm install tries to spawn git inside the container and gets ENOENT.

One-liner: apt-get install git before npm install. Should unblock the test-docker CI job.

🤖 Generated with Claude Code

The node:22-trixie-slim image lacks git, which npm needs to
resolve `github:` dependencies like hapi-swagger. This broke
the docker CI job after the hapi-swagger dep was changed to
github:KozyOps/hapi-openapi.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@aberoham aberoham mentioned this pull request Apr 13, 2026
@msimerson
Copy link
Copy Markdown
Contributor

msimerson commented Apr 13, 2026

100% on the diagnosis, but I <bows head in shame> have a different solution in the oven.

@msimerson msimerson closed this Apr 13, 2026
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.

2 participants