diff --git a/cmd/networkcmd/start.go b/cmd/networkcmd/start.go index 9599fd16d..b65a91745 100644 --- a/cmd/networkcmd/start.go +++ b/cmd/networkcmd/start.go @@ -133,7 +133,7 @@ const nodeBinaryName = "luxd" // findNodeBinary locates the node binary using the following priority: // 1. User-provided --node-path flag // 2. ~/.lux/bin/luxd (symlinked via 'lux node link') -// 3. LUX_NODE_PATH environment variable +// 3. NODE_PATH environment variable // 4. Config file node-path setting (~/.lux/cli.json) // 5. Node binary in PATH // 6. Relative to CLI binary: ../node/build/ @@ -154,7 +154,7 @@ func findNodeBinary() (string, error) { } // Priority 3 & 4: Check viper (handles both env var and config file) - // viper automatically checks LUX_NODE_PATH env var first, then config file + // viper automatically checks NODE_PATH env var first, then config file if configPath := viper.GetString(constants.ConfigNodePath); configPath != "" { // Expand ~ to home directory if strings.HasPrefix(configPath, "~") { @@ -193,7 +193,7 @@ func findNodeBinary() (string, error) { return "", fmt.Errorf("%s binary not found. Please either:\n"+ " 1. Use --node-path flag to specify the path\n"+ " 2. Run 'lux node link' to symlink a binary to ~/.lux/bin/luxd\n"+ - " 3. Set LUX_NODE_PATH environment variable\n"+ + " 3. Set NODE_PATH environment variable\n"+ " 4. Set node-path in ~/.lux/cli.json config file\n"+ " 5. Add %s to your PATH\n"+ " 6. Build %s in the sibling node directory (../node/build/%s)", diff --git a/cmd/nodecmd/link.go b/cmd/nodecmd/link.go index 58a355a8f..40d674dad 100644 --- a/cmd/nodecmd/link.go +++ b/cmd/nodecmd/link.go @@ -27,7 +27,7 @@ Creates ~/.lux/bin directory if needed and symlinks the luxd binary. PRIORITY ORDER for binary lookup: 1. Command-line flags (--node-path) 2. ~/.lux/bin/luxd (this symlink) - 3. Environment variable (LUX_NODE_PATH) + 3. Environment variable (NODE_PATH) 4. Config file settings 5. PATH lookup 6. Relative paths from CLI location diff --git a/cmd/root.go b/cmd/root.go index 20fbe126d..7b1cf785c 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -489,7 +489,7 @@ func initConfig() { } // Bind environment variables for binary paths - // LUX_NODE_PATH -> node-path, etc. + // NODE_PATH -> node-path, etc. _ = viper.BindEnv(constants.ConfigNodePath, constants.EnvNodePath) _ = viper.BindEnv(constants.ConfigNetrunnerPath, constants.EnvNetrunnerPath) _ = viper.BindEnv(constants.ConfigEVMPath, constants.EnvEVMPath) diff --git a/go.mod b/go.mod index 61993ecc5..d7b4466e3 100644 --- a/go.mod +++ b/go.mod @@ -316,7 +316,7 @@ require ( github.com/luxfi/ai v0.2.0 github.com/luxfi/api v1.0.10 github.com/luxfi/codec v1.1.4 - github.com/luxfi/constants v1.5.3 + github.com/luxfi/constants v1.5.4 github.com/luxfi/coreth v1.21.48 github.com/luxfi/corona v0.2.1 github.com/luxfi/database v1.18.3 diff --git a/go.sum b/go.sum index 0e2fb646d..85e540f58 100644 --- a/go.sum +++ b/go.sum @@ -466,6 +466,8 @@ github.com/luxfi/consensus v1.23.2 h1:Edr/AhBbJH9RXwplCn65jYYb73bxRqbzKF6orpYYyf github.com/luxfi/consensus v1.23.2/go.mod h1:16Q5zhPY09mhjEMOetd6QMzf0ZFqGSt6K5Fy7V/BTE8= github.com/luxfi/constants v1.5.3 h1:ydcHNOqpDbejUse/hbj8VN4NT2ResSCM6tEkYzED6SU= github.com/luxfi/constants v1.5.3/go.mod h1:hOszZ2NDQ8gMZKncfcZ67PXkb5OIbnwAzXC3oFbQwW0= +github.com/luxfi/constants v1.5.4 h1:KD1WJMyDcH/C9hX/iTXJBQTlnwX5IFyO3iRlcSlC3zs= +github.com/luxfi/constants v1.5.4/go.mod h1:XF0Plq5fzvYZR9TDhoosQpyOYu+H5R3Q1izHEztMqVU= github.com/luxfi/container v0.0.4 h1:BXhF82WyfqVP5mjlNcr7tP0Fcnvl0Ap1rkiu+rq5XuM= github.com/luxfi/container v0.0.4/go.mod h1:Z3SpmMF5d4t77MM0nHYXURpn+EMVaeu1fhbd/3BGaek= github.com/luxfi/coreth v1.21.48 h1:l7b26Dl+SrwOEHWEaI0j0rJE1P6JTCWQlqt3ZqovYn0=