2.54.2+21.10 introduces a call in vendor_conf.d/snapd.fish to fish function `fish_add_path` which requires fish 3.2 or later (Impish only packages fish 3.1)

Bug #1957948 reported by Matias Piipari
20
This bug affects 3 people
Affects Status Importance Assigned to Milestone
snapd (Ubuntu)
Undecided
Unassigned

Bug Description

After installing the proposed snapd update 2.54.2+21.10, I see the following when launching a new fish shell session on 21.10:

```
/usr/share/fish/vendor_conf.d/snapd.fish (line 3):
fish_add_path -aP $snap_bin_path
^
from sourcing file /usr/share/fish/vendor_conf.d/snapd.fish
 called on line 294 of file /usr/share/fish/config.fish
from sourcing file /usr/share/fish/config.fish
 called during startup
```

Said line of `/usr/share/fish/vendor_conf.d/snapd.fish` references the fish function `fish_add_path` which seems (*) to have only been made available in fish 3.2 (Ubuntu 21.10 packages 3.1.2 of fish presently).

Upgrading fish by installing 3.2 or later via https://launchpad.net/~fish-shell/+archive/ubuntu/release-3 indeed works around (or modifying above script to `set -gx $PATH ...` (I guess this comes with the downside of duplicate entries that `fish_add_path` removes?)

(*) PR adding `fish_add_path`: https://github.com/fish-shell/fish-shell/pull/7028 was part of the 3.2 milestone

Revision history for this message
Maciej Borzecki (maciek-borzecki) wrote :

This was fixed in https://bugs.launchpad.net/snapd/+bug/1957155 which so far is available only in snapd master.

Changed in snapd (Ubuntu):
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Duplicates of this bug

Other bug subscribers