feat: migrate forc-client from sway to forc monorepo#825
Conversation
This PR enables fuelup to source `forc-client` from the `FuelLabs/forc`
monorepo starting with version 0.71.0, following the ongoing migration
of Fuel tooling as outlined in the RFC.
Changes:
- Update `components.toml` with forc-client migration config
- Update `tag_for_version()` to handle `forc-client` tags in forc monorepo
- Update `proxy_cli.rs` to handle forc-client executables for toolchain overrides
- Remove forc-client executables from forc component (now separate)
- Add tests for forc-client version routing
Version Routing:
| Version | Repository | Tarball | Tag Format |
|-----------|------------|--------------------------------------|----------------------|
| < 0.71.0 | sway | forc-binaries-{target}.tar.gz | v{version} |
| >= 0.71.0 | forc | forc-client-{version}-{target}.tar.gz| forc-client-{version}|
Related PRs:
- RFC: FuelLabs/sway-rfcs#49
- forc-client migration: FuelLabs/forc#143
- sway-nightly-binaries: FuelLabs/sway-nightly-binaries#83
PR SummaryMedium Risk Overview
Written by Cursor Bugbot for commit 889a486. This will update automatically on new commits. Configure here. |
- Add `parent_component_for_executable()` to properly detect bundled executables and their parent component - Users running `fuelup component add forc-run` now get the correct message to add `forc-client` instead of `forc` - Users can now directly add `forc-client` as a standalone component
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
Summary
This PR enables fuelup to source
forc-clientfrom theFuelLabs/forcmonorepo starting with version 0.71.0, following the ongoing migration of Fuel tooling as outlined in the RFC.Changes
components.tomlwith forc-client migration configtag_for_version()to handleforc-clienttags in forc monorepoproxy_cli.rsto handle forc-client executables for toolchain overridesVersion Routing
forc-binaries-{target}.tar.gzv{version}forc-client-{version}-{target}.tar.gzforc-client-{version}Related PRs
This is part of the broader effort to migrate Fuel tooling from the sway monorepo to the forc monorepo:
- RFC: Tooling Monorepo sway-rfcs#49
- forc-client migration: Migrate
- sway-nightly-binaries: feat: migrate forc-client nightly builds to forc monorepo sway-nightly-binaries#83
- Groundwork PRs:
- feat: enable
- feat: migrate
- feat: migrate
Cursor Bugbot reviewed your changes and found no issues for commit 889a486forc-clientfrom theswayrepo forc#143forc-walletmigration from standalone repo toforcmonorepo #807 (forc-wallet migration)forc-cryptofrom sway to forc monorepo #808 (forc-crypto migration)forc-nodefrom sway to forc monorepo #819 (forc-node migration)