You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
make install does not nuke existing completions #4314
0ebff8c removes the custom completion for the source builtin, but it turns out that make install over an existing fish installation does not remove the existing completions. Would this be considered a bug or do we expect users to first run make uninstall before running make install?
Is there a point in trying to sync the two directories instead of nuking the existing completions directory and copying everything over (for installation speed purposes)? (I wouldn't spend much brain power over this one, just rsync if rsync exists or nuke and copy.)
Good catch. That should definitely be improved if only to keep developers from pulling their hair out after doing make install and getting unexpected behavior. It doesn't affect the vast majority of users who install from packages or via mechanisms like Homebrew. So low priority to fix but it would be nice to improve this.
I just delete $__fish_datadir/functions and $__fish_datadir/completions before I do make install. Is there anything else that really needs to be done other than that?
@Darkshadow2, occasionally you will get bitten by binaries appearing or disappearing - the check_legacy_binaries targetshould take care of that, though.
Activity
krader1961 commentedon Aug 11, 2017
Good catch. That should definitely be improved if only to keep developers from pulling their hair out after doing
make installand getting unexpected behavior. It doesn't affect the vast majority of users who install from packages or via mechanisms like Homebrew. So low priority to fix but it would be nice to improve this.zanchey commentedon Aug 24, 2017
If you run
make installwithout blowing away the existing installation or usingmake uninstall, you're gonna have a bad time.mqudsi commentedon Aug 26, 2017
@zanchey can we check if $PREFIX/bin/fish exists and have make call
make uninstallfrom within theinstalltarget? Or is that too unorthodox?Darkshadow2 commentedon Aug 27, 2017
I just delete $__fish_datadir/functions and $__fish_datadir/completions before I do
make install. Is there anything else that really needs to be done other than that?zanchey commentedon Aug 27, 2017
@mqudsi, that might work - something like:
zanchey commentedon Aug 27, 2017
@Darkshadow2, occasionally you will get bitten by binaries appearing or disappearing - the
check_legacy_binaries targetshould take care of that, though.Revert "Blow away existing $fish_data_dir on (re)install"
zanchey commentedon Nov 28, 2025
Fixed with embed-files