Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -393,14 +393,14 @@ function stepInstallNeoVim() {
if ! [ -e "$(command -v nvim)" ]; then
logStep "Installing NeoVim..."
# Adds repo for latest neovim version
runCmdAndLog add-apt-repository -y ppa:neovim-ppa/stable
runCmdAndLog add-apt-repository -y ppa:neovim-ppa/unstable
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

neovim-ppa/unstable PPA Ubuntu 20.04 focal support

💡 Result:

As of February 2, 2026, the ppa:neovim-ppa/unstable PPA does not publish packages for Ubuntu 20.04 (focal). On the PPA page, the selectable / published series are Jammy (22.04) and newer (Noble 24.04, Plucky 25.04, Questing 25.10, Resolute 26.04), with no Focal entry. [1]

Historically, there were focal builds in this PPA (e.g., recipe builds targeting the Focal series), but focal is not currently supported/published. [2]

Sources: [1] [2]


🏁 Script executed:

# Find and examine the bootstrap.sh file around line 397
find . -name "bootstrap.sh" -type f

Repository: yorch/ubuntu-server-bootstrap

Length of output: 87


🏁 Script executed:

# Search for NeoVim-related installation code
rg -A 5 -B 5 "neovim-ppa" --type sh

Repository: yorch/ubuntu-server-bootstrap

Length of output: 651


NeoVim unstable PPA is incompatible with Ubuntu 20.04, a required supported version.

The ppa:neovim-ppa/unstable does not publish packages for Ubuntu 20.04 (focal). Switching from the stable PPA breaks the bootstrap script on Ubuntu 20.04, which is listed as a supported LTS version. Either:

  1. Use ppa:neovim-ppa/stable for cross-version compatibility
  2. Add logic to use stable PPA on Ubuntu 20.04 and unstable on newer versions
  3. Remove Ubuntu 20.04 from supported versions
🤖 Prompt for AI Agents
In `@bootstrap.sh` at line 397, The script currently adds the unstable Neovim PPA
via the call to runCmdAndLog add-apt-repository -y ppa:neovim-ppa/unstable which
fails on Ubuntu 20.04; update bootstrap.sh to choose the stable PPA for focal or
fall back to stable when the OS version is 20.04: detect the release (e.g., via
lsb_release -rs or /etc/os-release), and replace the unconditional
add-apt-repository invocation with logic that sets the PPA variable to
ppa:neovim-ppa/stable for "20.04" (focal) and ppa:neovim-ppa/unstable for newer
releases, then call runCmdAndLog add-apt-repository -y "$PPA".

Copy link

Copilot AI Feb 2, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switching from ppa:neovim-ppa/stable to ppa:neovim-ppa/unstable changes this step from installing the latest stable Neovim to tracking an "unstable" channel, which can introduce breaking changes or repository issues over time and makes bootstrap runs less predictable. If the intent is to get the newest features, consider either keeping the stable PPA and updating when needed, making the channel (stable vs unstable) configurable via a flag/env var, or clearly documenting that this script now depends on an unstable PPA so users understand the tradeoff.

Copilot uses AI. Check for mistakes.
runCmdAndLog ${APT_CMD} update
runCmdAndLog ${APT_INSTALL} neovim
# Set neovim as default vim
local NVIM_BIN
NVIM_BIN="$(command -v nvim)"
runCmdAndLog update-alternatives --set vi "${NVIM_BIN}"
runCmdAndLog update-alternatives --set vim "${NVIM_BIN}"
runCmdAndLog update-alternatives --install /usr/bin/vi vi "${NVIM_BIN}" 110
runCmdAndLog update-alternatives --install /usr/bin/vim vim "${NVIM_BIN}" 110
log "NeoVim installed."
else
logStep "NeoVim already installed."
Expand Down