Skip to content

fix bevy imports. windows_settings.rs example#9547

Merged
alice-i-cecile merged 1 commit intobevyengine:mainfrom
ameknite:fix-imports-window-settings-example
Aug 23, 2023
Merged

fix bevy imports. windows_settings.rs example#9547
alice-i-cecile merged 1 commit intobevyengine:mainfrom
ameknite:fix-imports-window-settings-example

Conversation

@ameknite
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@mockersf
Copy link
Copy Markdown
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 <[email protected]>
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 <[email protected]>
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