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

Spacetime Upgrade #339

Merged
merged 11 commits into from
Oct 31, 2023
Merged

Spacetime Upgrade #339

merged 11 commits into from
Oct 31, 2023

Conversation

jdetter
Copy link
Collaborator

@jdetter jdetter commented Sep 29, 2023

Description of Changes

  • Adds spacetime upgrade command, which allows you to upgrade your spacetime-cli version to the latest version, or a version of your choosing.
  • If you already have the version that you're trying to upgrade to, then no action is performed

Note: Its possible to downgrade to a version of spacetimedb that doesn't have the spacetime upgrade command, which means in order to upgrade again you'll have to follow the installation instructions on the spacetimedb.com website.

This has been tested on all 3 platforms: macOS, Linux and Windows.

API and ABI

  • This is a breaking change to the module ABI
  • This is a breaking change to the module API
  • This is a breaking change to the ClientAPI
  • This is a breaking change to the SDK API

If the API is breaking, please state below what will break

Testing

Try to upgrade to the latest version, 0.7.1:

> spacetime upgrade       
Finding version...done.
You are currently running version 0.7.2 of spacetime. The version you're upgrading to is 0.7.1.
This will replace the current executable at /Users/boppy/.cargo/bin/spacetime.
Do you want to continue? [y/N] y
  Downloading update... 13.40MiB/13.40MiB (0s)
spacetime has been updated to version 0.7.1

@jdetter jdetter force-pushed the jdetter/spacetime-upgrade branch from 9221984 to 210b126 Compare October 19, 2023 23:04
@jdetter jdetter added the release-any To be landed in any release window label Oct 27, 2023
@kulakowski kulakowski added release-current and removed release-any To be landed in any release window labels Oct 27, 2023
@jdetter jdetter force-pushed the jdetter/spacetime-upgrade branch from 210b126 to 0a2af97 Compare October 30, 2023 15:41
@jdetter jdetter force-pushed the jdetter/spacetime-upgrade branch from 2b020fd to 87a9fff Compare October 31, 2023 03:45
@jdetter jdetter requested a review from cloutiertyler October 31, 2023 04:39
@jdetter jdetter marked this pull request as ready for review October 31, 2023 04:39
Copy link
Contributor

@cloutiertyler cloutiertyler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dope!

@cloutiertyler cloutiertyler merged commit 331b1d8 into master Oct 31, 2023
5 checks passed
jdetter added a commit that referenced this pull request Oct 31, 2023
* Upgrade command

* Lints

* Working on upgrade command

* More improvements - testing now

* Rebasing on master

* Download spinner is working properly

* More UX improvements

* Small fix

* Small fix for Linux

* Small change to upgrade, much cleaner now

* Fixes for windows

---------

Co-authored-by: Boppy <no-reply@boppygames.gg>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants