Skip to content

Move the initialization of M.cached_features up #1914

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

Closed
wants to merge 1 commit into from

Conversation

dhruvrajvanshi
Copy link

There are some plugins which call validate_spec before cached_features was initialized, so there would be an exception
on this line if not M.cached_features[os] or M.cached_features[os] ~= 1.

Moving this up ensures that this doesn't happen

This prevents errors when a plugin tries to call
validate_spec too early
@dhruvrajvanshi dhruvrajvanshi marked this pull request as draft April 21, 2025 10:22
@dhruvrajvanshi dhruvrajvanshi marked this pull request as ready for review April 21, 2025 13:19
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