Skip to content
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

fix: incorrect monorepo sub-plugin path resolution #2186

Merged
merged 2 commits into from
Jan 10, 2025
Merged

Conversation

lpnh
Copy link
Contributor

@lpnh lpnh commented Jan 9, 2025

When attempting to install a plugin with a format like yazi-rs/plugins:mime-ext, an error message "No such file or directory" is returned.

The error occurs because the constructed local path to the plugin source is missing the .yazi extension. This results in incorrect paths such as mime-ext/init.lua instead of the correct mime-ext.yazi/init.lua.

This patch addresses this issue by ensuring the .yazi extension is correctly included when constructing the local path for these plugins.

Thanks for your amazing work!

@sxyazi sxyazi changed the title fix: ya pack deploy path handling fix: incorrect monorepo sub-plugin path resolution Jan 10, 2025
@sxyazi
Copy link
Owner

sxyazi commented Jan 10, 2025

Oh right, forgot to test sub-plugins, thanks for the patch!

Copy link
Owner

@sxyazi sxyazi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@sxyazi sxyazi merged commit b495f78 into sxyazi:main Jan 10, 2025
6 checks passed
@lpnh lpnh deleted the fix branch January 10, 2025 09:14
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