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

fix: error when loading lua file with modules using the --load flag #340

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

DevChanQ
Copy link
Contributor

@DevChanQ DevChanQ commented Sep 9, 2024

Problem

Loading a lua file with modules using the --load flag will have the modules appended as string to the end of the lua file.

Example:
Screenshot 2024-09-09 at 15 43 27

Fix

Updating the handleLoadArgs function to only map the lua code fixes the problem

@twilson63 twilson63 merged commit ab1cb68 into permaweb:main Sep 20, 2024
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.

2 participants