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

provide checked only on use, not definition #1673

Open
shriram opened this issue Nov 26, 2022 · 0 comments
Open

provide checked only on use, not definition #1673

shriram opened this issue Nov 26, 2022 · 0 comments

Comments

@shriram
Copy link
Member

shriram commented Nov 26, 2022

Saving, running, and publishing a file with provide does not seem to check that the provided names are actually present. These seem to be checked only at import-time. Thus, if a provider accidentally renames functions and forgets to change the provide, this can affect clients (and produce quite confusing errors — if imported names are used a lot, this leads to a long cascade of errors).

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

No branches or pull requests

1 participant