Juju snap doesn't have git binary - "git" version string generation failed : exec: "git": executable file not found in $PATH

Bug #2039642 reported by Nobuto Murata
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Canonical Juju
New
Undecided
Unassigned

Bug Description

$ juju version
3.1.6-genericlinux-amd64

I tried to test a patch for a charm by using a local charm on the filesystem, then Juju failed to generate version string for the local charm as follows.

$ juju refresh openstack-dashboard --path .
WARNING trying to generate version string: "git" version string generation failed : exec: "git": executable file not found in $PATH
This means that the charm version won't show in juju status. Charm path "/home/ubuntu/charm-openstack-dashboard"
Added local charm "openstack-dashboard", revision 32, to the model
no change to endpoints in space "alpha": application-dashboard, certificates, cluster, dashboard, dashboard-plugin, ha, identity-service, nrpe-external-master, public, shared-db, website, websso-fid-service-provider, websso-trusted-dashboard

Even though there is a git binary on the host filesystem, Juju snap itself doesn't have it.

$ snap run --shell juju -- git --help
/bin/bash: git: No such file or directory

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.