Skip to content

Docs inconsistency: cargo build and localnet.sh expect different output directories #150

@noorgme

Description

@noorgme

Problem

The documentation at https://docs.bittensor.com/developer-docs/subnet-development instructs users to run:

  1. cargo build -p node-subtensor --profile production --features pow-faucet

  2. BUILD_BINARY=0 ./scripts/localnet.sh

However, this results in errors because:

  • The build command outputs the binary to target/production/release/node-subtensor
  • The localnet.sh script expects a fast-blocks build located at target/fast-blocks/release/node-subtensor

Suggested Fix

Update the docs to either:

  1. Match the script by telling users to build using:
    CARGO_TARGET_DIR=target/fast-blocks cargo build -p node-subtensor --profile=release --features="pow-faucet fast-blocks"

OR

  1. Modify localnet.sh to optionally use production as the default target dir when BUILD_BINARY=0.

Thanks for the great project!

Metadata

Metadata

Assignees

No one assigned

    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