Skip to content

Conversation

@yusufgurdogan
Copy link

This change addresses build failures when invalid ACTIVE_NETWORK values are used. Previously, using an invalid value like "banano_live" (without the "_network" suffix) would result in a cryptic C++ enum error during compilation.

Changes:

  1. Added CMake validation that checks ACTIVE_NETWORK against the list of valid values and provides a clear, helpful error message with:

    • The invalid value that was provided
    • A complete list of valid options with descriptions
    • Example usage showing the correct format
  2. Added comprehensive documentation in README.md including:

    • Valid ACTIVE_NETWORK values in a table format
    • Descriptions of each network type
    • Common build configuration examples
    • Clear indication that banano_live_network is the default

The validation now catches configuration errors early in the CMake phase rather than during compilation, significantly improving the developer experience.

This change addresses build failures when invalid ACTIVE_NETWORK values
are used. Previously, using an invalid value like "banano_live" (without
the "_network" suffix) would result in a cryptic C++ enum error during
compilation.

Changes:
1. Added CMake validation that checks ACTIVE_NETWORK against the list of
   valid values and provides a clear, helpful error message with:
   - The invalid value that was provided
   - A complete list of valid options with descriptions
   - Example usage showing the correct format

2. Added comprehensive documentation in README.md including:
   - Valid ACTIVE_NETWORK values in a table format
   - Descriptions of each network type
   - Common build configuration examples
   - Clear indication that banano_live_network is the default

The validation now catches configuration errors early in the CMake phase
rather than during compilation, significantly improving the developer
experience.
The validation logic triggers an internal bug in cmake-format 0.6.13
that causes CI failures. Keeping the README documentation which is
the most valuable part of this change.
@yusufgurdogan yusufgurdogan force-pushed the claude/cmake-validation-only-01NAx7komJdW1b2LeSdGr2yc branch from 16e6938 to 7e5664e Compare November 18, 2025 15:48
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