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

fix bevy imports. windows_settings.rs example #9547

Merged

Conversation

ameknite
Copy link
Contributor

Objective

In #9355 was added an import using bevy_internal.
This change the import to use bevy::window instead of a bevy_internal to run the example outside of the bevy repo.

@IceSentry
Copy link
Contributor

That's the second PR I did where this happened, I wonder if there's something I can do with rust-analyzer to force it to not use the bevy_internal stuff.

@IceSentry
Copy link
Contributor

Or maybe some CI step that could check for this?

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior C-Examples An addition or correction to our examples and removed C-Bug An unexpected or incorrect behavior labels Aug 23, 2023
@alice-i-cecile alice-i-cecile added this pull request to the merge queue Aug 23, 2023
@alice-i-cecile alice-i-cecile added the S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it label Aug 23, 2023
Merged via the queue into bevyengine:main with commit 427ba30 Aug 23, 2023
24 checks passed
@mockersf
Copy link
Member

Or maybe some CI step that could check for this?

I think the simplest solution that should catch all issues is to grep for bevy_internal in the examples directory... but that's not pretty

github-merge-queue bot pushed a commit that referenced this pull request Aug 29, 2023
# Objective

- Avoid using bevy_internal imports in examples. 

## Solution

- Add CI to check for bevy_internal imports like suggested in
#9547 (comment)
- Fix another import

I don't know much about CI so I don't know if this is the better
approach, but I think is better than doing a pull request every time I
found this lol, any suggestion is welcome.

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

- Avoid using bevy_internal imports in examples. 

## Solution

- Add CI to check for bevy_internal imports like suggested in
bevyengine#9547 (comment)
- Fix another import

I don't know much about CI so I don't know if this is the better
approach, but I think is better than doing a pull request every time I
found this lol, any suggestion is welcome.

---------

Co-authored-by: Rob Parrett <robparrett@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-Examples An addition or correction to our examples S-Ready-For-Final-Review This PR has been approved by the community. It's ready for a maintainer to consider merging it
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants