fix: CI log formatting and glow install on Debian
- Move glow install from apt/pacman/brew to mise (fixes Debian CI failure where glow is not in default apt repos) - Suppress verbose Poetry installer banner with tail -1 in mise app install loop - Add final log_pass to vim plugin script for consistent formatting - Add version quote to cmatrix for completeness Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -25,3 +25,4 @@ for url in "${vim_plugins[@]}"; do
|
||||
log_pass "$name installed"
|
||||
fi
|
||||
done
|
||||
log_pass "vim plugins configured"
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
# -----------------------------------------------------------------------------
|
||||
# Description:
|
||||
# Install preview dependencies: chafa (images), poppler (PDFs), glow (markdown).
|
||||
# Install preview dependencies: chafa (images), poppler (PDFs).
|
||||
#
|
||||
|
||||
# chafa — terminal image viewer
|
||||
@@ -43,23 +43,4 @@ if ! command -v pdftotext &> /dev/null; then
|
||||
fi
|
||||
command -v pdftotext &> /dev/null && pdftotext -v 2>&1 | head -1 | log_quote
|
||||
|
||||
# glow — rendered markdown in terminal
|
||||
if ! command -v glow &> /dev/null; then
|
||||
case "$DOTS_PKG" in
|
||||
brew)
|
||||
brew install glow
|
||||
;;
|
||||
apt)
|
||||
sudo apt-get install -qq glow
|
||||
;;
|
||||
pacman)
|
||||
sudo pacman -S --noconfirm --needed glow
|
||||
;;
|
||||
*)
|
||||
log_warn "Skipping glow install: no supported package manager found"
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
command -v glow &> /dev/null && glow --version | head -1 | log_quote
|
||||
|
||||
log_pass "preview dependencies"
|
||||
|
||||
@@ -71,12 +71,13 @@ if [[ "$DOTS_ENV" != "codespaces" ]]; then
|
||||
"terraform@1.14.4"
|
||||
"firebase@15.5.1"
|
||||
"fastfetch@latest"
|
||||
"glow@latest"
|
||||
)
|
||||
fi
|
||||
|
||||
log_info "Installing apps..."
|
||||
for tool in "${MISE_APPS[@]}"; do
|
||||
MISE_QUIET=1 mise use -g "$tool" 2>&1 | log_quote
|
||||
MISE_QUIET=1 mise use -g "$tool" 2>&1 | tail -1 | log_quote
|
||||
done
|
||||
|
||||
# Rebuild bat theme cache with mise-installed bat (must match delta's syntect version)
|
||||
@@ -103,6 +104,7 @@ log_info "Verifying installations..."
|
||||
mise exec -- terraform --version | head -1
|
||||
echo "firebase: $(mise exec -- firebase --version)"
|
||||
echo "fastfetch: $(mise exec -- fastfetch --version 2>&1 | head -1)"
|
||||
mise exec -- glow --version | head -1
|
||||
fi
|
||||
echo "fzf $(fzf --version)"
|
||||
bat --version | head -1
|
||||
|
||||
@@ -24,4 +24,5 @@ if ! command -v cmatrix &> /dev/null; then
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
command -v cmatrix &> /dev/null && cmatrix -V 2>&1 | head -1 | log_quote
|
||||
log_pass "cmatrix installed"
|
||||
|
||||
Reference in New Issue
Block a user