-
Notifications
You must be signed in to change notification settings - Fork 150
Description
Summary
All channel TOML files on the gh-pages branch need their forc-wallet target keys renamed from Rust target triples to simplified format to match the unified naming convention being adopted for forc monorepo binaries.
Background
As part of the forc monorepo migration (RFC: FuelLabs/sway-rfcs#49), binaries sourced from the FuelLabs/forc repository use simplified target names:
| Rust Target Triple | Simplified Name |
|---|---|
x86_64-unknown-linux-gnu |
linux_amd64 |
aarch64-unknown-linux-gnu |
linux_arm64 |
x86_64-apple-darwin |
darwin_amd64 |
aarch64-apple-darwin |
darwin_arm64 |
Affected components: forc-wallet (and future forc monorepo binaries like forc-crypto)
NOT affected: fuel-core, fuel-core-keygen (these remain with Rust triples as they come from a different repo)
The forc component already uses simplified names.
Related PRs
- feat: migrate
forc-cryptofrom sway to forc monorepo #808 (forc-crypto migration - updates components.toml) - FuelLabs/forc releases now use simplified names
- Legacy forc-wallet repo assets being renamed
Files to Update
All TOML files on the gh-pages branch:
channel-fuel-beta-1.toml
channel-fuel-beta-2.toml
channel-fuel-beta-3.toml
channel-fuel-beta-4-rc.toml
channel-fuel-beta-4-rc-2.toml
channel-fuel-beta-4.toml
channel-fuel-beta-5.toml
channel-fuel-devnet.toml
channel-fuel-mainnet.toml
channel-fuel-nightly.toml
channel-fuel-testnet.toml
Plus any TOML files in subdirectories (channels/, version directories, etc.).
Required Changes
For each TOML file, rename only the forc-wallet target keys under [pkg.forc-wallet.target] sections:
Before
[pkg.forc-wallet.target.aarch64-unknown-linux-gnu]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-aarch64-unknown-linux-gnu.tar.gz"
hash = "abc123..."
[pkg.forc-wallet.target.x86_64-unknown-linux-gnu]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-x86_64-unknown-linux-gnu.tar.gz"
hash = "def456..."
[pkg.forc-wallet.target.aarch64-apple-darwin]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-aarch64-apple-darwin.tar.gz"
hash = "ghi789..."
[pkg.forc-wallet.target.x86_64-apple-darwin]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-x86_64-apple-darwin.tar.gz"
hash = "jkl012..."After
[pkg.forc-wallet.target.linux_arm64]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-linux_arm64.tar.gz"
hash = "abc123..."
[pkg.forc-wallet.target.linux_amd64]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-linux_amd64.tar.gz"
hash = "def456..."
[pkg.forc-wallet.target.darwin_arm64]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-darwin_arm64.tar.gz"
hash = "ghi789..."
[pkg.forc-wallet.target.darwin_amd64]
url = "https://github.com/FuelLabs/forc-wallet/releases/download/v0.15.2/forc-wallet-0.15.2-darwin_amd64.tar.gz"
hash = "jkl012..."Important Notes
- Hash values stay the same - only the target key and URL filename change (file contents are identical)
- URL filenames must also be updated - the asset filename in the URL changes to match the simplified target name
- This requires the FuelLabs/forc-wallet release assets to be renamed first - the URLs must point to valid files
- Only
forc-walletis affected - do NOT changefuel-coreorfuel-core-keygenentries
Prerequisite
Before executing this change, the release assets in FuelLabs/forc-wallet must be renamed. The repo is currently archived and needs to be temporarily unarchived to rename the assets.
Execution Plan
-
Prerequisite: Rename all release assets in FuelLabs/forc-wallet repo (requires unarchiving)
-
Clone the gh-pages branch:
git clone --branch gh-pages https://github.com/FuelLabs/fuelup.git fuelup-gh-pages cd fuelup-gh-pages -
Find all TOML files:
find . -name "*.toml" -type f
-
For each TOML file, perform these replacements only within
[pkg.forc-wallet.target.*]sections:- Target key:
aarch64-unknown-linux-gnu→linux_arm64 - Target key:
x86_64-unknown-linux-gnu→linux_amd64 - Target key:
aarch64-apple-darwin→darwin_arm64 - Target key:
x86_64-apple-darwin→darwin_amd64 - URL filename: same mappings apply to the filename portion of URLs
- Target key:
-
Commit and push changes to gh-pages
Acceptance Criteria
- All
forc-walletentries in channel TOML files use simplified target names - All
forc-walletURLs point to valid renamed assets -
fuel-coreandfuel-core-keygenentries remain unchanged (still use Rust triples) -
fuelup component add forc-walletworks correctly after changes