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

Support the toolchain pattern, starting with latest toolchain #63

Closed
eightfilms opened this issue Jun 7, 2022 · 1 comment · Fixed by #73
Closed

Support the toolchain pattern, starting with latest toolchain #63

eightfilms opened this issue Jun 7, 2022 · 1 comment · Fixed by #73
Labels
enhancement enhancement to a current feature

Comments

@eightfilms
Copy link
Contributor

fuelup is largely inspired by rustup in terms of how it should distribute packages in the Fuel toolchain in future, and this inspiration extends to the toolchain concept.

Following a discussion here, a good first step towards building the foundation of toolchain management would be to support the latest toolchain (which is basically what we have now!)

This would mean:

  • We have some kind of config file within ~/.fuelup/bin, this could be in the form of a settings.toml similar to rustup, where configs (eg. the default toolchain) are set,
  • We download bins to /toolchains/latest/bin instead, so that next time we can download other versions to, for example, /toolchains/stable/bin, or we can even support custom toolchains i.e. /toolchains/my-toolchain/bin
@eightfilms
Copy link
Contributor Author

In making this work we need to support the proxy pattern - it means we will run forc and fuel-core through fuelup, pass necessary args through fuelup to the respectively tools. This is how rustup is aware of which toolchain to use for which tool.

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