Skip to content

Conversation

mah0x211
Copy link
Owner

@mah0x211 mah0x211 commented Apr 4, 2025

Previously, path extensions for module lookup were hardcoded, which
could lead to incorrect paths in custom environments. This change:

  • Extracts actual path patterns from luarocks path command output
  • Collects unique basename patterns for each module type
  • Constructs accurate module search paths dynamically

This fix prevents module loading failures by ensuring paths always
match the actual structure of installed Lua modules.

@mah0x211 mah0x211 force-pushed the fix-module-path-resolution branch 2 times, most recently from f3c161b to 1193731 Compare April 4, 2025 12:24
Previously, path extensions for module lookup were hardcoded, which
could lead to incorrect paths in custom environments. This change:

- Extracts actual path patterns from luarocks path command output
- Collects unique basename patterns for each module type
- Constructs accurate module search paths dynamically

This fix prevents module loading failures by ensuring paths always
match the actual structure of installed Lua modules.
@mah0x211 mah0x211 force-pushed the fix-module-path-resolution branch from 1193731 to 5cbdbf1 Compare April 4, 2025 12:26
@mah0x211 mah0x211 merged commit 73abbc2 into master Apr 4, 2025
2 checks passed
@mah0x211 mah0x211 deleted the fix-module-path-resolution branch April 4, 2025 12:30
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