Skip to content

make install does not nuke existing completions #4314

Closed

Description

@mqudsi

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.)

Activity

  1. krader1961 commented on Aug 11, 2017

    @krader1961
    Contributor

    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.

  2. zanchey commented on Aug 24, 2017

    @zanchey
    Member

    If you run make install without blowing away the existing installation or using make uninstall, you're gonna have a bad time.

  3. mqudsi commented on Aug 26, 2017

    @mqudsi
    ContributorAuthor

    @zanchey can we check if $PREFIX/bin/fish exists and have make call make uninstall from within the install target? Or is that too unorthodox?

  4. Darkshadow2 commented on Aug 27, 2017

    @Darkshadow2
    Contributor

    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?

  5. zanchey commented on Aug 27, 2017

    @zanchey
    Member

    @mqudsi, that might work - something like:

    ifeq "$(strip $(wildcard $(DESTDIR)$(bindir)/fish))" "$(DESTDIR)$(bindir)/fish"
    install: uninstall
    endif
  6. zanchey commented on Aug 27, 2017

    @zanchey
    Member

    @Darkshadow2, occasionally you will get bitten by binaries appearing or disappearing - the check_legacy_binaries target should take care of that, though.

  7. reopened this on Jun 1, 2018
  8. modified the milestones: fish-future, fish 4.2 on Nov 28, 2025
  9. zanchey commented on Nov 28, 2025

    @zanchey
    Member

    Fixed with embed-files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions