lsd-rs / lsd-rs/lsd

User and Group Names are not displayed with MUSL Build

Open
#374 6 comments 2 reactions 0 assignees View on GitHub
kind/bug os/linux status/blocked
Dominant language
Rust
Stars
16.2k
Forks
510
PR merge metrics
No merged PRs in 30d

Description

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.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reading the linked pull request #431 and the issue's GNU and MUSL command output. Check whether the reported MUSL build behavior is addressed there; done means user and group names are displayed instead of numeric UID/GID on the reported SLES 12 environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.