goenv icon indicating copy to clipboard operation
goenv copied to clipboard

goenv makes use of /bin/ls absolute path

Open nmaupu opened this issue 7 months ago • 1 comments
trafficstars

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

nmaupu avatar Mar 28 '25 18:03 nmaupu

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.

mochouaaaaa avatar Apr 01 '25 21:04 mochouaaaaa