Skip to content

fix: restore main/main.go entry point so luxd builds#124

Open
hanzo-dev wants to merge 2 commits into
mainfrom
fix/restore-luxd-main-entrypoint
Open

fix: restore main/main.go entry point so luxd builds#124
hanzo-dev wants to merge 2 commits into
mainfrom
fix/restore-luxd-main-entrypoint

Conversation

@hanzo-dev
Copy link
Copy Markdown
Member

Problem

main/ is absent from main, so every build path that targets ./main fails with couldn't find main file: stat main: no such file or directory:

  • Makefilebuild: / install: / build-release:
  • scripts/build.sh (line 117: go build … "${REPO_ROOT}/main")
  • .goreleaser.yml release pipeline
  • CI: build-ubuntu-arm64-release.yml, build-linux-binaries.yml, build-win-release.yml, test-database-replay.yml

The repo root has no package main node entry point (only check_interface.go, a //go:build tools helper). So luxd cannot be built from main today.

Fix

Restores main/main.go (the node daemon entry point) from clean-main (f2ff0199d). It wires config.BuildFlagSet → BuildViper → GetNodeConfig → log.NewFactoryWithConfig → ulimit.Set → node.New → Dispatch, with a --version short-circuit and SIGINT/SIGTERM handling. All referenced APIs still exist on current main and the node.New(*node.Config, log.Factory, log.Logger) signature matches exactly.

Validation

$ go build -o build/luxd ./main      # exit 0 (one benign ld warning re: optional luxcpp accel lib)
$ ./build/luxd --version
luxd/1.23.25
$ ./build/luxd --help                # prints usage

Single file, +101/-0. No go.mod/go.sum changes required.

zeekay and others added 2 commits April 23, 2026 18:01
…#104)

Consolidating to single canonical ARC fleet. Killing duplicate lux-build
scale set. All callers → hanzo-build-linux-amd64 (max 30 on DO) and
hanzo-build-linux-arm64 (max 30 on GKE T2A Ampere). One and only one
ARC fleet across hanzo/lux/zoo/liquidity.

Includes build-linux-binaries.yml (release tarball) in addition to the
docker + debian package workflows.

No behavior change.

Co-authored-by: Hanzo AI <dev@hanzo.ai>
main/ has been absent from `main`, so every build path targeting ./main — Makefile build/install/build-release, scripts/build.sh, .goreleaser.yml, and the release CI workflows — fails with 'stat main: no such file or directory'. This restores the entry point from clean-main (f2ff019); it still matches current APIs (config.BuildFlagSet/BuildViper/GetNodeConfig, node.New(*node.Config, log.Factory, log.Logger), version.CurrentApp).

Verified: `go build -o build/luxd ./main` succeeds and the binary runs (`luxd --version` -> luxd/1.23.25).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.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.

3 participants