Skip to content

fix(rockspec): adjusted luarocks executable to contain the appropriate extension on windows#1983

Open
TheZoc wants to merge 1 commit intofolke:mainfrom
TheZoc:main
Open

fix(rockspec): adjusted luarocks executable to contain the appropriate extension on windows#1983
TheZoc wants to merge 1 commit intofolke:mainfrom
TheZoc:main

Conversation

@TheZoc
Copy link

@TheZoc TheZoc commented Apr 20, 2025

This fixes the problems with :checkhealth and package building on Windows when using luarocks.
Previously it wasn't adding the correct extension, depending on the user setup.

Remarks:

  1. LuaRocks has 2 different distribution packages, one that uses a .bat and another one that uses a .exe.

  2. vim.fn.executable() will work if the extension is omitted, but Process.exec() will fail

This should solve most of the Windows users headaches when using LuaRocks with lazy.nvim

image

@github-actions
Copy link
Contributor

This PR is stale because it has been open 30 days with no activity.

@github-actions github-actions bot added the stale This issue or PR has been inactive for a while label May 21, 2025
@TheZoc
Copy link
Author

TheZoc commented Jan 12, 2026

Bumping this, as this fixes issues in Windows :)

@github-actions github-actions bot removed the stale This issue or PR has been inactive for a while label Jan 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.

1 participant