docroot not expanded correctly for --help #701

Open
opened 2025-02-26 13:48:57 +00:00 by lheckemann · 3 comments
Member

Describe the bug

Links in --help output for nix [sub]commands render strangely (already reported in #622), and contain some unexpanded @docroot@ occurrences:

2025-02-26-144255_screenshot.png

Steps To Reproduce

  1. Run nix --help.

Expected behavior

@docroot@` should be expanded correctly, if present at all, in these pages.

nix --version output

nix (Lix, like Nix) 2.93.0-dev-pre20250224-945e674
System type: x86_64-linux
Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux
Features: gc, signed-caches
System configuration file: /etc/nix/nix.conf
User configuration files: /home/linus/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/linus/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/linus/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/linus/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/linus/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf
Store directory: /nix/store
State directory: /nix/var/nix
Data directory: /nix/store/gnjcl840pc8wra0634mprj1zs176swqq-lix-2.93.0-dev-pre20250224-945e674/share

Additional context

This doesn't seem to affect the manpages (e.g. man nix3-flake), though the references to other pages in there aren't helpful either (but I think that's what #111 is about?)

## Describe the bug Links in `--help` output for `nix` [sub]commands render strangely (already reported in #622), and contain some unexpanded `@docroot@` occurrences: ![2025-02-26-144255_screenshot.png](/attachments/9f032f57-9db9-4ed3-8688-c5204dea3b55) ## Steps To Reproduce 1. Run `nix --help`. ## Expected behavior @docroot@` should be expanded correctly, if present at all, in these pages. ## `nix --version` output ``` nix (Lix, like Nix) 2.93.0-dev-pre20250224-945e674 System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/linus/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/linus/.local/share/flatpak/exports/etc/xdg/nix/nix.conf:/var/lib/flatpak/exports/etc/xdg/nix/nix.conf:/home/linus/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/linus/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/linus/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/gnjcl840pc8wra0634mprj1zs176swqq-lix-2.93.0-dev-pre20250224-945e674/share ``` ## Additional context This doesn't seem to affect the manpages (e.g. `man nix3-flake`), though the references to other pages in there aren't helpful either (but I think that's what https://git.lix.systems/lix-project/lix/issues/111 is about?)
Owner

this is definitely a duplicate of something. i believe it is the markdown parser or terminal code parser being busted.

this is definitely a duplicate of something. i believe it is the markdown parser or terminal code parser being busted.
Owner
https://git.lix.systems/lix-project/lix/issues/622
Owner

the docroot thing is a separate bug i think. that should really be fixed.

the docroot thing is a separate bug i think. that should really be fixed.
jade changed title from Links not expanded correctly for --help to docroot not expanded correctly for --help 2025-02-26 18:18:27 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#701
No description provided.