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

feat(rockspec): minor changes to rocks detection #1888

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

infastin
Copy link

@infastin infastin commented Jan 14, 2025

Description

Some lua modules may not put .rockspec file at the root of the project, so lazy.nvim won't recognize them as rocks. This PR makes it so lazy.nvim also scans rockspec and rockspecs directories (if they exist) for the appropriate .rockspec.
Some modules may also have a revision other than 1, so this PR makes it so lazy.nvim matches any numerical revision.

Related Issue(s)

None

Screenshots

None

@@ -311,11 +330,13 @@ function M.get(plugin)
-- has a complex build process
or not M.is_simple_build(rockspec)

rockspec_file = rockspec_file:sub(#plugin.dir+2)
Copy link
Author

@infastin infastin Jan 14, 2025

Choose a reason for hiding this comment

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

I don't know if this is ok

@infastin infastin changed the title feat(rockspec): scan rockspecs directory for .rockspec files feat(rockspec): scan rockspec and rockspecs directories for .rockspec files Jan 14, 2025
@infastin infastin changed the title feat(rockspec): scan rockspec and rockspecs directories for .rockspec files feat(rockspec): minor changes to rocks detection Jan 14, 2025
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