Skip to content

chore: rename forc-wallet target keys in gh-pages channel files to simplified format #809

@JoshuaBatty

Description

@JoshuaBatty

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

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

  1. Hash values stay the same - only the target key and URL filename change (file contents are identical)
  2. URL filenames must also be updated - the asset filename in the URL changes to match the simplified target name
  3. This requires the FuelLabs/forc-wallet release assets to be renamed first - the URLs must point to valid files
  4. Only forc-wallet is affected - do NOT change fuel-core or fuel-core-keygen entries

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

  1. Prerequisite: Rename all release assets in FuelLabs/forc-wallet repo (requires unarchiving)

  2. Clone the gh-pages branch:

    git clone --branch gh-pages https://github.com/FuelLabs/fuelup.git fuelup-gh-pages
    cd fuelup-gh-pages
  3. Find all TOML files:

    find . -name "*.toml" -type f
  4. For each TOML file, perform these replacements only within [pkg.forc-wallet.target.*] sections:

    • Target key: aarch64-unknown-linux-gnulinux_arm64
    • Target key: x86_64-unknown-linux-gnulinux_amd64
    • Target key: aarch64-apple-darwindarwin_arm64
    • Target key: x86_64-apple-darwindarwin_amd64
    • URL filename: same mappings apply to the filename portion of URLs
  5. Commit and push changes to gh-pages

Acceptance Criteria

  • All forc-wallet entries in channel TOML files use simplified target names
  • All forc-wallet URLs point to valid renamed assets
  • fuel-core and fuel-core-keygen entries remain unchanged (still use Rust triples)
  • fuelup component add forc-wallet works correctly after changes

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions