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

Feature request: can I update Bevy yet? #101

Open
alice-i-cecile opened this issue Sep 24, 2024 · 11 comments
Open

Feature request: can I update Bevy yet? #101

alice-i-cecile opened this issue Sep 24, 2024 · 11 comments
Labels
A-CLI Related to the main CLI and not a more specific subcommand C-Feature Make something new possible

Comments

@alice-i-cecile
Copy link
Member

Checks if a compatible version of all your bevy-reliant crates have compatible versions for a specified Bevy version, defaulting to latest. If an additional flag is provided, actually goes and edits your cargo.toml.

@BD103
Copy link
Member

BD103 commented Sep 24, 2024

There are multiple ways to accomplish this, but I think the sparse index protocol may be easiest. If you go to https://index.crates.io/be/vy/bevy, you get a JSON of every single Bevy version and its dependencies. If you do the same for all the dependencies in Cargo.toml, you can find what plugin versions require what Bevy versions.

If you want to get really fancy, you can even lookup ~/.cargo/registry/index/ to see this all locally, without any HTTP requests!

@BD103 BD103 added A-CLI Related to the main CLI and not a more specific subcommand C-Feature Make something new possible labels Sep 24, 2024
@TimJentzsch
Copy link
Collaborator

Suggestions for the command name?

Maybe bevy update, although that could be a bit confusing as it doesn't perform the update itself.

@janhohenheim
Copy link
Member

bevy ready --upgrade?

@TimJentzsch
Copy link
Collaborator

bevy ready --upgrade?

What would bevy ready do without the --upgrade flag?

@alice-i-cecile
Copy link
Member Author

Prints info about if you can upgrade and why, displaying which crates need to be bumped to which versions.

@BD103
Copy link
Member

BD103 commented Sep 24, 2024

As a quick mockup:

$ bevy ready
bevy = 0.13.1 (latest 0.14.2)
bevy_mod_picking = 0.19.0 (latest 0.20.0 supports 0.14.2)
bevy_asset_loader = 0.20.0 (latest 0.21.0 supports 0.14.0)

@alice-i-cecile
Copy link
Member Author

alice-i-cecile commented Sep 24, 2024

$ bevy ready

You can update Bevy! Run `bevy ready --fix` to update your project to Bevy 0.14.2 (latest).

bevy = 0.13.1 (latest 0.14.2)
bevy_mod_picking = 0.19.0 (latest 0.20.0 supports 0.14.2)
bevy_asset_loader = 0.20.0 (latest 0.21.0 supports 0.14.0)

@janhohenheim
Copy link
Member

--fix sounds a bit weird for an upgrade. My project isn't broken, after all. I'd stick to update, upgrade, modify, or a similar verb.

@richchurcher
Copy link
Collaborator

I almost want to say, bevy bump because that's the word I always think of when changing versions. But I may be in the minority!

@alice-i-cecile
Copy link
Member Author

Bevy bump is great :D

@janhohenheim
Copy link
Member

I love bevy bump, great suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-CLI Related to the main CLI and not a more specific subcommand C-Feature Make something new possible
Projects
None yet
Development

No branches or pull requests

5 participants