Skip to content

Netlify Build Fails Due to Private Git Dependency (plugin-image-zoom) #248

@yashisrani

Description

@yashisrani

Task description:

  • The Netlify build is currently failing during the dependency installation step with the following error:
Host key verification failed.
fatal: Could not read from remote repository.
...
Command: git ls-remote --tags --heads ssh://[email protected]/flexanalytics/plugin-image-zoom.git
  • This happens because the project depends on a private GitHub repository via SSH in package.json. However, open-source projects must use only publicly accessible dependencies so that anyone (including CI services like Netlify) can build the site without special access.

  • The goal of this task is to replace the private SSH dependency with the publicly available npm package docusaurus-plugin-image-zoom .

Solution:

  • Remove the current private dependency (likely listed as "plugin-image-zoom": "git+ssh://..." in package.json).
  • Install the official public plugin:
yarn remove plugin-image-zoom
yarn add docusaurus-plugin-image-zoom
  • Update docusaurus.config.js to reference the plugin by its full name:
plugins: [
  // ...
  "docusaurus-plugin-image-zoom", // use full package name
  // ...
]
  • Commit the updated package.json and yarn.lock.

Who can join or take the task:

The good first issue is intended for first-time contributors to get started on his/her contributor journey.

After a contributor has successfully completed 1-2 good first issue's,
they should be ready to move on to help wanted items, saving the remaining good first issue for other new contributors.

How to join or take the task:

Just reply on the issue with the message /assign in a separate line.

Then, the issue will be assigned to you.

How to ask for help:

If you need help or have questions, please feel free to ask on this issue.
The issue author or other members of the community will guide you through the contribution process.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions