Skip to content

feat: migrate forc-node to forc monorepo#208

Merged
JoshuaBatty merged 2 commits into
masterfrom
josh/fuel.nix
Jan 15, 2026
Merged

feat: migrate forc-node to forc monorepo#208
JoshuaBatty merged 2 commits into
masterfrom
josh/fuel.nix

Conversation

@JoshuaBatty

Copy link
Copy Markdown
Member

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

RFC

FuelLabs/sway-rfcs#49 - Tooling Monorepo RFC

Migrate forc-node from sway repo to forc monorepo, following the same
pattern as forc-crypto (PR #205):
- Versions < 0.71.0 source from sway with v{version} tags
- Versions >= 0.71.0 source from forc with forc-node-{version} tags

Adds clang/rocksdb dependencies required for fuel-core bindings.
@cursor

cursor Bot commented Jan 13, 2026

Copy link
Copy Markdown

PR Summary

Migrates forc-node support from sway to the forc monorepo and wires it into builds, releases, and docs.

  • Add comprehensive forc-node manifests (historic, stable, nightly), with legacy routing (sway < 0.71.0, forc >= 0.71.0)
  • Update patches.nix:
    • Include forc-node in forc-plugins
    • Set buildAndTestSubdir for monorepo builds (forc-node path)
    • Add required deps/env: clang, rocksdb, LIBCLANG_PATH, ROCKSDB_LIB_DIR; disable doCheck
  • Update script/refresh-manifests.sh to define/refresh pkg_forc_node (published + nightlies across legacy/new repos)
  • Docs: add forc-node entry to book/src/packages.md
  • Bump flake.lock (nixpkgs, rust-overlay)

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

@JoshuaBatty JoshuaBatty self-assigned this Jan 13, 2026
@JoshuaBatty JoshuaBatty merged commit ce7376b into master Jan 15, 2026
6 checks passed
@JoshuaBatty JoshuaBatty deleted the josh/fuel.nix branch January 15, 2026 03:12
JoshuaBatty added a commit that referenced this pull request Jan 15, 2026
forc-node cannot be built in the Nix sandbox due to two blocking issues:

- #196: fuel-core-wasm-executor requires network access during build
- #209: ethers-contract abigen! macro cannot find ethers crate

This keeps the migration changes from #208 (routing forc-node to forc
repo for versions >= 0.71.0) but disables the package until both issues
are resolved.
JoshuaBatty added a commit that referenced this pull request Jan 15, 2026
forc-node cannot be built in the Nix sandbox due to two blocking issues:

- #196: fuel-core-wasm-executor requires network access during build
- #209: ethers-contract abigen! macro cannot find ethers crate

This keeps the migration changes from #208 (routing forc-node to forc
repo for versions >= 0.71.0) but disables the package until both issues
are resolved.

Also fixes book.toml for mdbook 0.5.1 compatibility (removes deprecated
`multilingual` field introduced by flake.lock update in #208).
JoshuaBatty added a commit that referenced this pull request Jan 15, 2026
## Summary

Temporarily disables `forc-node` packaging until two blocking issues are
resolved:

- #196: `fuel-core-wasm-executor` requires network access during build
(cargo install in build.rs)
- #209: `ethers-contract` abigen! macro cannot find ethers crate in Nix
sandbox

## Changes

- Added filter in `filters.nix` to exclude all forc-node packages
- Removed forc-node manifest files (they will be regenerated when
re-enabled)

## Context

PR #208 was merged adding forc-node support, but the package cannot
actually build in the Nix sandbox due to the above issues. This PR keeps
the migration infrastructure (routing to forc repo for >= 0.71.0) but
disables the package until the blocking issues are resolved.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants