Skip to content

feat: migrate forc-node from sway to forc monorepo#819

Merged
JoshuaBatty merged 1 commit into
masterfrom
josh/forc-node
Jan 13, 2026
Merged

feat: migrate forc-node from sway to forc monorepo#819
JoshuaBatty merged 1 commit into
masterfrom
josh/forc-node

Conversation

@JoshuaBatty
Copy link
Copy Markdown
Member

@JoshuaBatty JoshuaBatty commented Jan 13, 2026

Summary

This PR enables fuelup to source forc-node 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-node migration config
  • Update tag_for_version() to handle forc-node tags in forc monorepo
  • Add tests for forc-node 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-node-{version}-{target}.tar.gz forc-node-{version}

Related PRs

This is part of the broader effort to migrate Fuel tooling from the sway monorepo to the forc monorepo:

Update fuelup to source forc-node from FuelLabs/forc starting with
version 0.71.0, with version-based routing to maintain backward
compatibility for older versions from the sway repository.
@cursor
Copy link
Copy Markdown

cursor Bot commented Jan 13, 2026

PR Summary

Migrates forc-node to be sourced from the forc monorepo at >=0.71.0, while preserving legacy downloads from sway.

  • Update components.toml for forc-node: repository_name = "forc", legacy_repository_name = "sway", legacy_before = "0.71.0", tarball_prefix = "forc-node", legacy_tarball_prefix = "forc-binaries", and publish = true
  • Extend tag_for_version() to emit forc-node-{version} when repo is forc
  • Add tests verifying repository, tag, and tarball prefix routing for forc-node in both component and ci/build-channel (including URL generation)

Written by Cursor Bugbot for commit e9485b5. This will update automatically on new commits. Configure here.

@JoshuaBatty JoshuaBatty self-assigned this Jan 13, 2026
@github-actions
Copy link
Copy Markdown
Contributor

LCOV of commit e9485b5 during CI #2300

Summary coverage rate:
  lines......: 87.2% (2671 of 3064 lines)
  functions..: 61.8% (408 of 660 functions)
  branches...: 65.2% (283 of 434 branches)

Files changed coverage rate: n/a

@JoshuaBatty JoshuaBatty requested a review from a team January 13, 2026 04:28
@JoshuaBatty JoshuaBatty merged commit 63fa1d5 into master Jan 13, 2026
24 checks passed
@JoshuaBatty JoshuaBatty deleted the josh/forc-node branch January 13, 2026 22:42
JoshuaBatty added a commit to FuelLabs/fuel.nix that referenced this pull request Jan 15, 2026
## Summary

Migrates `forc-node` package support from the `sway` repository to the
`forc` monorepo, effective from version 0.71.0 onwards.

This follows the same pattern established in #205 for `forc-crypto`.

## Changes

- **refresh-manifests.sh**: Added `pkg_forc_node` with legacy repo
routing (sway < 0.71.0, forc >= 0.71.0)
- **patches.nix**: 
  - Added `forc-node` to `forc-plugins` list for openssl dependencies
  - Added `buildAndTestSubdir` patch for forc monorepo builds
  - Added clang/rocksdb dependencies required for fuel-core bindings
- **packages.md**: Added forc-node to documentation

## Related PRs

- forc: [FuelLabs/forc#130](FuelLabs/forc#130) -
Migrate forc-node from sway repo
- fuelup:
[FuelLabs/fuelup#819](FuelLabs/fuelup#819) -
Migrate forc-node from sway to forc monorepo
- sway-nightly-binaries:
[FuelLabs/sway-nightly-binaries#81](FuelLabs/sway-nightly-binaries#81)
- Migrate forc-node nightly builds

## RFC

[FuelLabs/sway-rfcs#49](FuelLabs/sway-rfcs#49) -
Tooling Monorepo RFC

---------

Co-authored-by: GitHub Action <action@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants