Where to find latest toolchain channel?

My fuel-toolchain.toml looks like this:

[toolchain]

channel = "latest-2023-07-13"

[components]

forc = "0.46.1"

fuel-core = "0.20.6"

how would i find the latest channel for beta-4??

3 Likes

Hey @diyahir nice to see you actively using the forum! To use the latest toolchain please follow the installation guide here. If you are trying to use a prerelease component and don’t want to wait for Fuelup follow the custom instructions below.

Beta 4

  1. Install toolchain
fuelup toolchain install beta-4
  1. Point at beta-4 toolchain
fuelup default beta-4

Latest

  1. Install toolchain
fuelup self update
  1. Point at latest toolchain
fuelup default latest

Custom

  1. Create your custom toolchain
fuelup toolchain new testing_channel
  1. Add the components you want. For example
fuelup component add fuel-core@0.20.6
fuelup component add forc@0.46.1
  1. Point at your custom toolchain
fuelup default testing_channel

After pointing it to the latest toolchain you should be able to see all your channels using

fuelup show
Default host: aarch64-apple-darwin
fuelup home: /Users/calldelegation/.fuelup

installed toolchains
--------------------
beta-3-aarch64-apple-darwin
beta-4-rc.2-aarch64-apple-darwin
latest-aarch64-apple-darwin (default)
beta-4-aarch64-apple-darwin
latest-2023-02-18-aarch64-apple-darwin
latest-2023-04-12-aarch64-apple-darwin
testing_channel
testing_channel_2

active toolchain
-----------------
latest-aarch64-apple-darwin (default)
  forc : 0.46.0
    - forc-client
      - forc-deploy : 0.46.0
      - forc-run : 0.46.0
    - forc-doc : 0.46.0
    - forc-explore : 0.28.1
    - forc-fmt : 0.46.0
    - forc-index : 0.20.11
    - forc-lsp : 0.46.0
    - forc-tx : 0.46.0
    - forc-wallet : 0.3.0
  fuel-core : 0.20.5
  fuel-core-keygen : Error getting version string
  fuel-indexer : 0.20.11

fuels versions
---------------
forc : 0.45
forc-wallet : 0.45

My latest channel is under installed toolchains

latest-aarch64-apple-darwin

Thanks for the response!

My question is more related about the toml configuration which defines the workspace etc.

So for projects that are defining the toolchain used inside the project we must specify the channel, so I want to find where to get the latest beta-4 channel

When i set it to my channel:
channel = "beta-4-aarch64-apple-darwin"

¨warning: invalid ‘fuel-toolchain.toml’ in project root: Invalid channel ‘beta’

If I set it to ‘latest’, I get the error:

warning: invalid ‘fuel-toolchain.toml’ in project root: invalid value: string “latest”, expected one of <latest-YYYY-MM-DD|nightly-YYYY-MM-DD|beta-1|beta-2|beta-3> for key toolchain.channel

There’s basically a weird error I’m seeing and it’s related to the channel being set to an outdated version, in theory I could remove the toml config and let the system use the default one, but it’s better to define it in the project for proper versioning.

I am noticing that beta-4 is not an option in one of error responses, so it could be that I’m running into some pending issue

The channel name should just be beta-4.

This is compiling for me:

[toolchain]
channel = "beta-4"

[components]
forc = "0.46.1"
fuel-core = "0.20.6"

Going to tag @kaya for more detailed response.

This is what I see when I do fuelup show using ‘beta-4’:

beta-4-aarch64-apple-darwin (override), path: …/GitHub/fuel/asset-error-demo/fuel-toolchain.toml
forc : 0.45.0
- forc-client
- forc-deploy : 0.45.0
- forc-run : 0.45.0
- forc-doc : 0.45.0
- forc-explore : 0.28.1
- forc-fmt : 0.45.0
- forc-index : 0.21.0
- forc-lsp : 0.45.0
- forc-tx : 0.45.0
- forc-wallet : 0.3.0
fuel-core : 0.20.4
fuel-core-keygen : Error getting version string
fuel-indexer : 0.21.0

so the forc is out of date not to 0.46 and I think causing me a weird issue with Asset that has been fixed after 0.45

Beta-4 toolchain specifically uses forc v0.45.0. We are planning to update to 0.46.1 probably in couple of days. You can follow the PR from here.

Best,
k

1 Like

I guess the confusion comes from being able to specify components that don’t override the toolchain, or should it be that the toolchain is not defined but the components are?

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.