snapcraft doesn't allow setting the environment for hooks

Bug #1848381 reported by Ian Johnson
This bug affects 2 people
Affects Status Importance Assigned to Milestone

Bug Description

With the following hook environment specification in snapcraft.yaml:

      LC_ALL: C.UTF-8
      LANG: C.UTF-8

snapcraft fails like this:

$ snapcraft
Issues while validating snapcraft.yaml: The 'hooks/install' property does not match the required schema: Additional properties are not allowed ('environment' was unexpected)

This is with version 3.8 on amd64:

$ snapcraft version
snapcraft, version 3.8
$ snap info snapcraft | grep installed
installed: 3.8 (3440) 60MB classic

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.