mirror of
https://github.com/luxfi/node.git
synced 2026-07-27 03:39:39 +00:00
Restores the missing entry point that .goreleaser.yml, Makefile, and scripts/build.sh all expect at ./main. Without this file, the release pipeline fails with 'couldn't find main file: stat main: no such file or directory'. The main wires: config.BuildFlagSet → config.BuildViper → config.GetNodeConfig → log.NewFactoryWithConfig → ulimit.Set → node.New(*node.Config, log.Factory, log.Logger) → n.Dispatch() with SIGINT/SIGTERM handling → exit n.ExitCode() --version short-circuits to print version.CurrentApp.String() (e.g. 'luxd/1.23.25'). Not using the orphan app/ package (app.New takes nodeconfig.Config which is a parallel type definition not produced by config.GetNodeConfig). The app/ package can be migrated separately or removed.