-
Notifications
You must be signed in to change notification settings - Fork 494
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
[Merged by Bors] - feat: fvm update command #3645
[Merged by Bors] - feat: fvm update command #3645
Conversation
5ce57bc
to
719631b
Compare
719631b
to
68e593c
Compare
What happens if I run |
You will see:
|
68e593c
to
b592395
Compare
Just added a test for this here: b592395#diff-9e90aaedcb1d6ed2a0448f1c8fb5306d2c9788f1ed82e0d22619efb9f2f277e2R745-R768 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
bors r+ |
Introduces the `fvm update` command which checks current channel to be up to date. Channels `stable` and `latest` are both "updateable", in the other hand the static tag is not "updateable". ### How it works When a user has either `stable` or `latest` as the active channel, FVM fetches the most recent release for that channel. - Stable: Will check if the upstream version is greater than the current using Semver. - Latest: Will check if the upstream tag is different. We cant tell which is greater because we use SHAs to determine versions. - Static Tag: When the user has an static tag as version using for instance `fvm install 0.10.14`, FVM will not attempt to update. Then the same process as for `fvm install` is followed, this is why the logic is first disengaged from `fvm install` into its own module on commit: [0a8b819](0a8b819). In order to determine the current version for the channel FVM uses the already implemented `settings.toml` file. ## Demo ![CleanShot 2023-10-31 at 20 58 13](https://github.com/infinyon/fluvio/assets/34756077/e96d7ac1-043a-4f0b-aa71-2641be254699) > By changing the version in the settings.toml, we can mimic an outdated version for the active channel.
Pull request successfully merged into master. Build succeeded! The publicly hosted instance of bors-ng is deprecated and will go away soon. If you want to self-host your own instance, instructions are here. If you want to switch to GitHub's built-in merge queue, visit their help page. |
Introduces the
fvm update
command which checks current channel to be up to date.Channels
stable
andlatest
are both "updateable", in the other hand the statictag is not "updateable".
How it works
When a user has either
stable
orlatest
as the active channel, FVM fetches the mostrecent release for that channel.
fvm install 0.10.14
, FVM will not attempt to update.Then the same process as for
fvm install
is followed, this is why the logic is firstdisengaged from
fvm install
into its own module on commit: 0a8b819.In order to determine the current version for the channel FVM uses the already implemented
settings.toml
file.Demo