-
Notifications
You must be signed in to change notification settings - Fork 15
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
"include" directive is not allowed within an "if" block #72
Comments
Agreed that snippet should work, although I think the mask should just be Will you open a PR? |
I agree that the mask should be consistent with what we see in the NGINX source definition. The problem is that here we define nginx-go-crossplane/analyze.go Lines 57 to 61 in 73c76f9
The only place where we use I'll open a PR. |
The following block of code is a valid nginx configuration:
Despite that, the tool detects the "include" as a non-allowed directive under the "if" context:
To reproduce
nginx-go-crossplane
latest version, and see the above error.Expected behavior
The mentioned config shouldn't be throwing an error.
Additional context
This is likely caused by the directives map config here:
nginx-go-crossplane/analyze.go
Line 791 in 73c76f9
I think we should modify the mask to include the "http > location > if"
The text was updated successfully, but these errors were encountered: