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

Show deprecation notice when slashes is passed to require. #1782

Merged
merged 1 commit into from Apr 3, 2022

Conversation

MikuAuahDark
Copy link
Contributor

@MikuAuahDark MikuAuahDark commented Mar 1, 2022

As discussed in #1773, it's probably a good idea to show a warning about usage of slashes in require, then evalue when to enforce this by throwing Lua error.

@MikuAuahDark MikuAuahDark linked an issue Mar 2, 2022 that may be closed by this pull request
@slime73
Copy link
Member

slime73 commented Mar 29, 2022

I haven't forgotten about this, I just need to think about it a bit but haven't had the time lately

@MikuAuahDark
Copy link
Contributor Author

No worries. Take your time.

@slime73
Copy link
Member

slime73 commented Apr 3, 2022

Let's try it out and see how it goes.

However we'll probably need to keep code around forever to do the slash replacement, to make sure it errors (or shows the deprecation notice) rather than not finding the file and therefore falling back to Lua's built in searcher.

@slime73 slime73 merged commit 941fe51 into love2d:12.0-development Apr 3, 2022
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.

Enforce usage of dots in require
2 participants