lsd icon indicating copy to clipboard operation
lsd copied to clipboard

User and Group Names are not displayed with MUSL Build

Open mathomp4 opened this issue 5 years ago • 5 comments

This is an odd one. I seem to not be able to see user and group names with lsd on a computing cluster I am on, but only when using the MUSL build.

On my local macOS laptop, all is well, but on this SLES 12 cluster, all I see are the numeric UID/GID when I use the MUSL

Expected behavior

Using GNU ls:

$ \ls -l
total 3600
drwxr-xr-x 3 mathomp4 g0620    512 May 19 15:46 lsd-0.17.0-x86_64-unknown-linux-gnu
-rw-r--r-- 1 mathomp4 g0620 930577 May 19 15:46 lsd-0.17.0-x86_64-unknown-linux-gnu.tar.gz
drwxr-xr-x 3 mathomp4 g0620    512 May 19 15:48 lsd-0.17.0-x86_64-unknown-linux-musl
-rw-r--r-- 1 mathomp4 g0620 904892 May 19 15:48 lsd-0.17.0-x86_64-unknown-linux-musl.tar.gz

Using "gnu" lsd:

$ ./lsd-0.17.0-x86_64-unknown-linux-gnu/lsd -l
drwxr-xr-x mathomp4 g0620   512 B  Tue May 19 15:46:55 2020  lsd-0.17.0-x86_64-unknown-linux-gnu
.rw-r--r-- mathomp4 g0620 908.8 KB Tue May 19 15:46:48 2020  lsd-0.17.0-x86_64-unknown-linux-gnu.tar.gz
drwxr-xr-x mathomp4 g0620   512 B  Tue May 19 15:48:19 2020  lsd-0.17.0-x86_64-unknown-linux-musl
.rw-r--r-- mathomp4 g0620 883.7 KB Tue May 19 15:48:08 2020  lsd-0.17.0-x86_64-unknown-linux-musl.tar.gz

Actual behavior (using MUSL)

$ ./lsd-0.17.0-x86_64-unknown-linux-musl/lsd -l
drwxr-xr-x 31128555 20620   512 B  Tue May 19 15:46:55 2020  lsd-0.17.0-x86_64-unknown-linux-gnu
.rw-r--r-- 31128555 20620 908.8 KB Tue May 19 15:46:48 2020  lsd-0.17.0-x86_64-unknown-linux-gnu.tar.gz
drwxr-xr-x 31128555 20620   512 B  Tue May 19 15:48:19 2020  lsd-0.17.0-x86_64-unknown-linux-musl
.rw-r--r-- 31128555 20620 883.7 KB Tue May 19 15:48:08 2020  lsd-0.17.0-x86_64-unknown-linux-musl.tar.gz

(where the boxes are the Nerd Font icons that don't seem to render).

Obviously for now my "solution" is to use the GNU build, but I thought I'd inform you of this.

mathomp4 avatar May 19 '20 19:05 mathomp4

as the PR merged and a version newer than 0.18.0 not yet released, I mark this issue as blocked.

after releasing a new version, we can check and verify this.

zwpaper avatar Oct 17 '20 08:10 zwpaper

In MUSL buid 0.20.1 I am seeing this issue again. Has this been solved?

sadanand-singh avatar Dec 04 '21 01:12 sadanand-singh

I'm seeing this with lsd 1.0.0 on SUSE Linux Enterprise Server 15 (x86_64), having installed lsd via the homebrew/linuxbrew formula. I'm not sure if this is related, but could not find anything better yet.

jemus42 avatar Oct 18 '23 12:10 jemus42

I can confirm I see it as well with the MUSL build:

$ lsd -l
drwxr-xr-x 31128555 20620 512 B  Wed Oct 18 09:04:36 2023  autocomplete
.rw-r--r-- 31128555 20620  11 KB Sun Aug 27 12:53:04 2023  LICENSE
.rw-r--r-- 31128555 20620  20 KB Sun Aug 27 12:53:04 2023  README.md

mathomp4 avatar Oct 18 '23 13:10 mathomp4

As can be seen above, I see it also with eza so this must be a dependent crate issue?

mathomp4 avatar Oct 18 '23 13:10 mathomp4