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

fuelup check: command to check for updates #16

Closed
eightfilms opened this issue May 26, 2022 · 0 comments · Fixed by #64
Closed

fuelup check: command to check for updates #16

eightfilms opened this issue May 26, 2022 · 0 comments · Fixed by #64
Assignees
Labels
enhancement enhancement to a current feature

Comments

@eightfilms
Copy link
Contributor

eightfilms commented May 26, 2022

Having a fuelup check command that tells us if we need to update our toolchain would be useful. Although this command is technically not needed (because fuelup install downloads the latest binaries anyway), this command would be helpful in branching out into building other commands like fuelup update (updates all components), fuelup default [stable|nightly] (switch between toolchains), since these commands rely on versioning checks or toolchain checks (which we do not have the concept of yet).

We can store update tags within a dedicated folder in .fuelup, in the format [bin]-[version] (like how our packages are released at the moment):

/.fuelup
    /bin
        forc
        ...
    /binary-versions
        fuel-core-0.8.0

Then we check if the tag version is the same. Simple solution for now until we have toolchain versions in place - then it's also trivial to switch over to checking for the toolchain version

Basic implementation is now at #64 - for now we are running whichever component is first available from path atm. In future there is probably a better way to do this, especially when we have multiple toolchains.

@eightfilms eightfilms added the enhancement enhancement to a current feature label May 26, 2022
@adlerjohn adlerjohn moved this to Todo in Fuel Network May 26, 2022
This was referenced Jun 1, 2022
@eightfilms eightfilms self-assigned this Jun 7, 2022
@eightfilms eightfilms linked a pull request Jun 8, 2022 that will close this issue
Repository owner moved this from Todo to Done in Fuel Network Jun 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement enhancement to a current feature
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant