-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Use wildcard imports in bevy_pbr #9847
Conversation
Hmm. I don't mind it. Ideally it would be possible to create a tool which detects and automatically resolves and formats trivial import merge conflicts like this. Perhaps a GitHub bot like bors? It could even run fully automatically. I agree that these are a major paper it to contributing, both in and outside of rendering so I'm enthusiastic about improving the situation by whatever means we have. |
I think the "ideal" would be some sort of subset feature |
In my own crates, I've been experimenting with the idea of never having multiline imports. It's purely esthetic preference, since I'm the only one working on them, it's difficult to tell if it is any help. |
The other "ideal" solution would be to configure rustfmt to have single item per line. |
I'm in favor of this, but:
|
30ed125
to
aa831e5
Compare
aa831e5
to
741ad2b
Compare
741ad2b
to
9131335
Compare
Not controversial for me. This change has no impact except on contributor experience, and can be changed back if it doesn't work for us in a few minutes with an IDE. It's becoming more painful to contribute on the renderer, we should merge this soon |
# Objective - the style of import used by bevy guarantees merge conflicts when any file change - This is especially true when import lists are large, such as in `bevy_pbr` - Merge conflicts are tricky to resolve. This bogs down rendering PRs and makes contributing to bevy's rendering system more difficult than it needs to ## Solution - Use wildcard imports to replace multiline import list in `bevy_pbr` I suspect this is controversial, but I'd like to hear alternatives. Because this is one of many papercuts that makes developing render features near impossible.
# Objective - the style of import used by bevy guarantees merge conflicts when any file change - This is especially true when import lists are large, such as in `bevy_pbr` - Merge conflicts are tricky to resolve. This bogs down rendering PRs and makes contributing to bevy's rendering system more difficult than it needs to ## Solution - Use wildcard imports to replace multiline import list in `bevy_pbr` I suspect this is controversial, but I'd like to hear alternatives. Because this is one of many papercuts that makes developing render features near impossible.
Objective
bevy_pbr
Solution
bevy_pbr
I suspect this is controversial, but I'd like to hear alternatives. Because this is one of many papercuts that makes developing render features near impossible.