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", https://docs.snapcraft.io/455
# During testing, "snap connect icdiff:gitconfig" should work
plugs:
gitconfig:
interface: personal-files
read: [$HOME/.gitconfig]
apps:
git-icdiff:
# 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
environment:
# there's perl somewhere in the pipeline, and it gets shouty without this
LC_ALL: C.UTF-8
plugs:
- 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 :-)
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.
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?