Skip to content

fix!: search for include files from archive root - #28

Open
benniekiss wants to merge 1 commit into
mlua-rs:mainfrom
benniekiss:includes
Open

benniekiss wants to merge 1 commit into
mlua-rs:mainfrom
benniekiss:includes

Conversation

@benniekiss

Copy link
Copy Markdown

This PR removes the rockspec.name from the include files search path when copying files.

Currently, the includes search assumes that paths are contained under a folder in the archive root named after the module. This means that for an include declared as a path mapping, include = { "foo/bar/buz.lua" = "buz.lua" }, it actually looks for the file at {module_name}/foo/bar/buz.lua

With the patch, includes are now searched under the archive root, as declared in the mapping.

I found this issue when debugging benniekiss/rs-mod-lua#163

This is probably a breaking change.

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