goenv
goenv copied to clipboard
goenv makes use of /bin/ls absolute path
Hello everyone,
I am a long time user of goenv and I love it.
However, I am migrating my workstation to guix and I can't use goenv as is because it makes use of /bin/ls...
In a guix system, ls is not in that path but rather in /run/current-system/profile/bin/ls.
I can make a PR to fix this (using ls command directly instead of an absolute path) but I am not really sure as to why you are using an absolute path for that...
Let me know how I can fix this the better way.
Nico
I also found this problem, but I don't recommend hard-coding ls directly. I suggest adding a GOENV_FALLBACK_LS environment variable. You only need to set the environment variable, and then the script will use it when it detects this variable.