Skip to content

fix(installer): carapace not in pacman repos on Arch - #178

Open
AdrianLinares wants to merge 1 commit into
Gentleman-Programming:mainfrom
AdrianLinares:fix/arch-carapace-package-not-found
Open

fix(installer): carapace not in pacman repos on Arch#178
AdrianLinares wants to merge 1 commit into
Gentleman-Programming:mainfrom
AdrianLinares:fix/arch-carapace-package-not-found

Conversation

@AdrianLinares

Copy link
Copy Markdown

Problem

The Arch (pacman) shell-install step in the TUI installer fails with target not found: carapace, aborting the whole shell-install step on a fresh Arch Linux box before starship.toml or the fish config are copied.

Root cause

The installer declares carapace as a pacman package in the Arch field of the Fish, Zsh and Nushell steps (installer/internal/tui/installer.go):

Arch:   "fish carapace zoxide atuin starship",

But carapace is not in the official Arch repositories. It only exists in the AUR as carapace (source build) or carapace-bin (prebuilt; Provides: carapace). pacman -S --needed --noconfirm fish carapace zoxide atuin starship therefore errors out on carapace and the entire shell step is marked failed.

This is unrelated to the Brew/Fedora/Debian fields — carapace IS installable via Homebrew and is in the Fedora repos, so those paths work fine; only the pacman path is broken.

Fix

Remove carapace from the three Arch fields only (Fish, Zsh, Nushell). The Brew/Fedora/Debian fields are left untouched — carapace remains installable there.

File Change
installer/internal/tui/installer.go Drop carapace from the Arch: field of the Fish, Zsh and Nushell installPlatformPackages calls

Arch users who actually want carapace can install it from the AUR (carapace-bin) or via the Homebrew fallback path.

Verification

$ cd installer && go build ./...      # ok
$ cd installer && go vet ./internal/tui/   # ok
$ cd installer && go test ./...
ok      github.com/Gentleman-Programming/Gentleman.Dots/installer/internal/tui/trainer
FAIL    github.com/Gentleman-Programming/Gentleman.Dots/installer/internal/tui

The single failing test (internal/tui) is an environmental golden-file mismatch — the golden expects Detected: macOS but this machine runs Arch Linux. It fails identically on pristine main (without this patch) and is unrelated to the change in this PR.

The Gentlemen.Dots installer declares `carapace` as a pacman package for
Arch Linux in the Fish/Zsh/Nushell shell-install steps, but `carapace`
is not available in the official Arch repositories. It only exists in
the AUR as `carapace` (source build) or `carapace-bin` (prebuilt), and
`carapace-bin` Provides: carapace.

As a result `pacman -S --needed --noconfirm fish carapace zoxide atuin
starship` fails with `target not found: carapace`, aborting the whole
shell install step before starship.toml or the fish config are copied.

Removing `carapace` from the Arch field makes pacman proceed. The
carapace binary can still be provided via the AUR (carapace-bin) or
Homebrew fallback. Brew/Fedora/Debian fields keep carapace where it is
actually installable.
@rafafrdz

rafafrdz commented Aug 4, 2026

Copy link
Copy Markdown

same problem here (CachyOS)

@chicoj2ck

Copy link
Copy Markdown

I have the same problem (CachyOs)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants