Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cmd/networkcmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -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/<nodeBinaryName>
Expand All @@ -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, "~") {
Expand Down Expand Up @@ -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)",
Expand Down
2 changes: 1 addition & 1 deletion cmd/nodecmd/link.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand Down
Loading