Skip to content

rename node binary to avoid collisions in path #3051

@huttarichard

Description

@huttarichard

at this point nodejs is very much popular and most people have nodejs in their path as node.
After go install node will be in go/bin which is usually in PATH as well.

My suggestion is to rename cmd/node to something like cmd/erdnode.
At this point it is still doable. Moreover it is best practice to have all executables with prefix.

Later on it will become pain in the ass for newcomers.

Two arguments here:

  1. to avoid collisions as mentioned
  2. shells (such as bash, fish, zsh) generally allows autocompletion, if binary is found in path it is possible possible to autocomple. This gives you ability to type erd hit tab and see all binaries related to elrond (assumption here is erd prefix for all executables in cmd/)

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions