-
Notifications
You must be signed in to change notification settings - Fork 474
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
Multiple equivalent require blocks could be merged #2404
Comments
I found another example, I'll probably have to write a script to locate all cases.
|
Agreed this is harmless in terms of the generated artifacts from the spec repo. We'll discuss as to whether there might be any downstream consequences. Sometimes we refactor interactions like this from one extension to another, which is probably how this happened. |
The theory I heard was it happened during the transition from requires and requiresCore to depends. Sounds very plausible to me as this is how it would have been structured for those attributes. |
We discussed and are OK with this - please go ahead and propose a PR to that effect. If you happen to write a detection tool we could run in CI, that seems useful as well (preferably as a Python script). |
Addresses KhronosGroup#2404 Merges extension require blocks that have identical children, extending the depends attribute with a logical or.
* Merge equivalent require blocks Addresses #2404 Merges extension require blocks that have identical children, extending the depends attribute with a logical or. * Add utility script This script prints out require blocks that are eligible to be merged together.
Closed with #2406 merged and published in the latest spec update. |
I am fairly certain the former can be replaced with the latter as the require blocks are equivalent, only differing in their depends attribute. I can open a pull request for this later if this change is desirable.
The text was updated successfully, but these errors were encountered: