Request for automatic alias and connection for icdiff

Hi there!

I’ve packaged icdiff a while ago. Now I’m wanting to also package a helper that makes it work together with git, git-icdiff. For this, I need

  • icdiff.git-icdiff to get aliased to git-icdiff, and
  • the personal-files interface to auto-connect.

This is how I’m using it (from the snapcraft.yaml):

# personal-files won't auto-connect without going through the "Process for
# aliases, auto-connetions and tracks",
# During testing, "snap connect icdiff:gitconfig" should work
    interface: personal-files
    read: [$HOME/.gitconfig]

    # We'll want to request an automatic alias for this to work seamlessly.
    # During testing, "snap alias icdiff.git-icdiff git-icdiff" should work
    command: usr/bin/git-icdiff
      # there's perl somewhere in the pipeline, and it gets shouty without this
      LC_ALL: C.UTF-8
      - home            # so it can acess files under the user's home
      - removable-media # so it can access things in /media, etc
      - gitconfig       # so it can access ~/.gitconfig :-)

and the store doesn’t like that right now.

1 Like

Should I have mentioned @reviewers?

+1 to the alias, having a git helper requires the git-$NAME

Can you explain some more why you need to read ~/.gitconfig ?

1 Like

Because git-icdiff uses git config to get the pager and other bits and bobs,

Without that connected,

$ git icdiff
warning: unable to access '/home/john/.gitconfig': Permission denied
warning: unable to access '/home/john/.gitconfig': Permission denied
warning: unable to access '/home/john/.gitconfig': Permission denied
warning: unable to access '/home/john/.gitconfig': Permission denied
fatal: unknown error occurred while reading the configuration files

Thanks, +1 to autoconnection of the personal-files interface to read ~/.gitconfig

1 Like

+1 for the alias. Since icdiff as a snap is extending git, it seems to make sense that personal-files should be autoconnected.

2 votes for, 0 against for the alias. Granting use of the alias. This is now live.

2 votes for, 0 against for the use of personal-files. Could not grant due to

@pedronis - fyi, I subscribed you to this bug in case you had input.

I’m glad I’m the one kicking the tires :slight_smile: thank you for the +1’s!

@jdstrand I answered in the bug, afaict things work as expected and there is misunderstanding.

What’s the status of this?

Can I add $HOME/.config/git/config to the personal-files list? (newer gits might start using $XDG_CONFIG_HOME/git/config which defaults to that)

Fyi, I granted the snap declaration but the store does not yet have the new review-tools in production to make them pass automated review. You can request a manual review or upload a new revision and we can accept it.

I uploaded a new revision and requested a manual review.

My next step was to make this build automatically; is that going to work, or should I hold off until the new review-tools are in production?

It will work but will fail review until the tools are in prod. I thought that might happen yesterday/today, but it apparently hasn’t yet. @roadmr - do you have an estimate?


We ran into some infrastructure trouble last week, which delayed things.
I’ll try to have this out today or tomorrow.


  • Daniel

The updates are in production now and your r4 passed automated review.

1 Like