-
Notifications
You must be signed in to change notification settings - Fork 53
fix: replace private image-zoom plugin to resolve Netlify build failure #255
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
fix: replace private image-zoom plugin to resolve Netlify build failure #255
Conversation
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
✅ Deploy Preview for kmesh-net ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Summary of ChangesHello @Priyadarshani7, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses and resolves a Netlify build failure by migrating from a privately hosted image zoom plugin to the publicly available Highlights
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code Review
This pull request correctly replaces the private plugin-image-zoom with the public docusaurus-plugin-image-zoom package to resolve a Netlify build failure, which is a good move. However, the yarn.lock file contains platform-specific changes that seem to have been generated on a Windows machine. This has removed dependencies for other platforms like macOS and could cause issues for other developers and potentially the Netlify build itself. Please see the specific comment for details on how to address this.
yarn.lock
Outdated
| "@node-rs/jieba-win32-x64-msvc@2.0.1": | ||
| version "2.0.1" | ||
| resolved "https://registry.npmjs.org/@node-rs/jieba-darwin-arm64/-/jieba-darwin-arm64-2.0.1.tgz" | ||
| integrity sha512-10+nwGQ6KzXXJlIL/sELA6Fi6m7eJ7xJksBiKuw1kxKUgaJwtVfAG0iqRF+NRQv0Sdq7r3k5ew9K9y0+IYaEcA== | ||
| resolved "https://registry.npmjs.org/@node-rs/jieba-win32-x64-msvc/-/jieba-win32-x64-msvc-2.0.1.tgz" | ||
| integrity sha512-LDOyo2/2CO8UnpSGLJdgqtH8mOnsABPhNxkfIky7UT9cyLEzOaU44nbA5YzPGpBI3qzMbWcwJYQsjBcgK2VqAg== |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems the yarn.lock file was regenerated on a Windows machine. This has introduced platform-specific dependencies (e.g., @node-rs/jieba-win32-x64-msvc, @parcel/watcher-win32-x64) while removing dependencies for other platforms (e.g., @node-rs/jieba-darwin-arm64, @parcel/watcher-darwin-arm64). This can break the development environment for team members on macOS or Linux and may not fix the Netlify build issue, which runs on Linux. It's recommended to revert these platform-specific changes in the lockfile to ensure it remains platform-agnostic. Only the changes related to docusaurus-plugin-image-zoom should be present.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR replaces a private GitHub-hosted image zoom plugin (flexanalytics/plugin-image-zoom) with the official npm package docusaurus-plugin-image-zoom to resolve Netlify build failures caused by authentication issues accessing private repositories.
Key Changes:
- Replaced
plugin-image-zoom(private GitHub package) withdocusaurus-plugin-image-zoom@^3.0.1(public npm package) - Updated plugin reference in docusaurus.config.js with minor code style improvements
- Added new dependencies to yarn.lock for the public plugin and its transitive dependencies
Reviewed Changes
Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| package.json | Replaced private GitHub plugin dependency with public npm package docusaurus-plugin-image-zoom@^3.0.1 |
| docusaurus.config.js | Updated plugin name reference and applied code style fixes (spacing, trailing comma) |
| yarn.lock | Added new plugin dependencies, but contains problematic platform-specific package replacements indicating lockfile regeneration on wrong platform |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
Copilot reviewed 2 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Resolved the issue for Netlify build failure #248