Package: neovim-lualine
Version: 0.0.6+git20251016-1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

Tried installing neovim-lualine on a clean system and noticed that it
wanted to pull in git and its dependencies.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

```sh
sudo apt install --no-install-recommends neovim neovim-lualine
```

   * What was the outcome of this action?

Installing neovim-lualine pulled in git and several of its dependencies.
neovim-lualine has a hard dependency on git, and it's impossible to
install it without also installing git.

Hard depency on git was added in neovim-lualine/0.0.6+git20250608-1 due
to a bug reported in #1108909.

   * What outcome did you expect instead?

Lualine is a general status line plugin for neovim, which includes
multitude of different modules, with git being one of them. All modules
are optional and should not require hard dependency on their related
utilities.

If lualine fails because of missing git, that indicates a bug on their
side and should be reported upstream instead of forcing people not using
git to install it on their system.

Moreover, I was not able to reproduce the problem reported in #1108909.
I've tested against both neovim-lualine/0.0.6+git20250412-1 in stable
and neovim-lualine/0.0.6+git20250608-1 in unstable. So the problem was
most likely with the user's setup. 

Here are the steps I've done in trying to reproduce the problem.

1. Debian stable (which doesn't have a dependency on git):

```sh
mkdir cage
sudo deboostrap stable cage
sudo git init cage/root/repo
sudo systemd-nspawn -D cage
# inside cage (running as root)
apt install --no-install-recommends neovim neovim-lualine
mkdir -p .config/nvim
echo 'require("lualine").setup()' > .config/nvim/init.lua
cd repo
nvim
# no errors were reported
```

2. Debian unstable:

```sh
mkdir cage
sudo deboostrap unstable cage
sudo git init cage/root/repo
sudo systemd-nspawn -D cage
# inside cage (running as root)
apt install --no-install-recommends neovim neovim-lualine
dpkg --force-all --purge git git-man
mkdir -p .config/nvim
echo 'require("lualine").setup()' > .config/nvim/init.lua
cd repo
nvim
# no errors were reported
```

-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.8.0-88-generic (SMP w/8 CPU threads; PREEMPT)
Locale: LANG=C.UTF-8, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: unable to detect

Versions of packages neovim-lualine depends on:
ii  git     1:2.51.0-1
ii  neovim  0.11.5-2

neovim-lualine recommends no packages.

neovim-lualine suggests no packages.

-- no debconf information

Reply via email to