Skip to content

fix: avoid duplicate Lua package paths - #75

Closed
nkbeast wants to merge 2 commits into
doriaxengine:mainfrom
nkbeast:fix/deduplicate-lua-package-path
Closed

fix: avoid duplicate Lua package paths#75
nkbeast wants to merge 2 commits into
doriaxengine:mainfrom
nkbeast:fix/deduplicate-lua-package-path

Conversation

@nkbeast

@nkbeast nkbeast commented Sep 2, 2026

Copy link
Copy Markdown
Contributor

Summary

  • make setLuaPath() idempotent across repeated initialization
  • detect only complete semicolon-delimited path entries
  • avoid unbounded package.path growth

Validation

  • C++17 compatibility confirmed (std::string::starts_with/ends_with)
  • git diff --check — passed

@nkbeast nkbeast closed this Sep 3, 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