juju / charm-tools

Tools for charm authors and maintainers
Other
42 stars 64 forks source link

snap: Environment variable for git templates is incorrect #630

Closed fnordahl closed 1 year ago

fnordahl commented 1 year ago
::   Running command git clone -q https://github.com/openstack/charms.openstack.git /root/snap/charmcraft/common/pip-wheel-4etwf3gn/charms.openstack                              
::   warning: templates not found in /snap/charm/645/share/git-core/templates

The wrapper scripts sets the variable here: https://github.com/juju/charm-tools/blob/8e87b279c15f2a5015aebd6bcb7f1736ee4b7063/helpers/snap-wrappers/charm#L4

The correct path appears to be: $SNAP/usr/share/git-core/templates