diff --git a/charmtools/build/builder.py b/charmtools/build/builder.py index a0749ec..9eaddbc 100755 --- a/charmtools/build/builder.py +++ b/charmtools/build/builder.py @@ -785,8 +785,8 @@ def workaround_charmcraft_maybe_ensure_build_packages(self): and (os.environ.get('CRAFT_PART_NAME', None) or os.environ.get('CHARMCRAFT_PART_NAME', None))): log.warning('Probably running as root in charmcraft, proactively ' - 'installing the `git` and `virutalenv` packages.') - subprocess.run(('apt', '-y', 'install', 'git', 'virtualenv'), check=True) + 'installing the `git` and `virtualenv` packages.') + subprocess.run(('apt', '-y', 'install', 'git', 'virtualenv'), check=True, env={}) def generate(self): layers = self.fetch()