<div dir="ltr">Hello, I've spent the better part of my day hitting my head too hard against a wall. Figured I'd ask the list for more assistance.<div><br></div><div>tl;dr: git doesn't work when included inside my snap and it's really messing me up.</div><div><br></div><div>snap install charm --edge</div><div><br></div><div>I'm snapping charm and charm-tools as a single snap. One is a godeps "part type" and the other python. Getting these two working together in a single snap was pretty straight forward. The charm command works as expected and finds the charm-tools plugins bundled alongside the snap it the proper path.</div><div><br></div><div><a href="https://github.com/juju-solutions/charm-pkg/blob/8ed82a1e70c748f76c3c39b2f70a1499a39c1864/snapcraft.yaml">https://github.com/juju-solutions/charm-pkg/blob/8ed82a1e70c748f76c3c39b2f70a1499a39c1864/snapcraft.yaml</a><br></div><div><br></div><div>My problem is some of the charm-tools commands rely on git, bzr, or hg to perform their commands. When trying the most basic step command</div><div><br></div><div>`charm create foo`</div><div><br></div><div>Which will checkout the python-reactive boilerplate template from github and place it in the users current working directory the following errors pop up in the output:</div><div><pre>warning: templates not found /usr/share/git-core/templates
fatal: Unable to find remote helper for 'https'</pre></div><div>During this run, there's nothing from apparmor complaining about bits and the snap is in strict confinement. Even in devmode the error persists.</div><div><br></div><div>The second error seems to be the core of the problem, based on this <a href="http://stackoverflow.com/q/8329485/196832">http://stackoverflow.com/q/8329485/196832</a> it seems that git has been compiled without ssl support. I find this hard to believe since it's being pulled from the archive and it works pretty well on my Xenial machine.</div><div><br></div><div>After consulting some in IRC the suggestion seems to be that I need to compile git from source in my snapcraft parts. After a few hours of trying to get the following part to compile I've all but given up.</div><div><br></div><div><div><font face="monospace">  git:</font></div><div><font face="monospace">    plugin: autotools</font></div><div><font face="monospace">    source: <a href="https://github.com/git/git.git">https://github.com/git/git.git</a></font></div><div><font face="monospace">    source-type: git</font></div><div><font face="monospace">    source-tag: v2.9.3</font></div><div><font face="monospace">    install-via: prefix</font></div><div><font face="monospace">    stage-packages: </font></div><div><font face="monospace">      - libcurl4-gnutls-dev</font></div><div><font face="monospace">      - libexpat1-dev</font></div><div><font face="monospace">      - gettext</font></div><div><font face="monospace">      - zlib1g-dev </font></div><div><font face="monospace">      - libssl-dev</font></div><div><font face="monospace">      - libc6-dev</font></div></div><div><br></div><div>Has anyone included git as a part of their snap?</div><div>Is there a different way to interface with git?</div><div>How can I troubleshoot this further?</div><div><br></div><div>We're (over)due for a release of charm and charm-tools and I'd honestly prefer snap distribution over deb packages but compiling git from upstream just to get it working seems like a step in the wrong direction.</div><div><br></div><div>Marco</div></div>