Snapcraft should read and write a file like .snapcraft
and use it to keep track of the answers to UI prompts.
A few things to note before we start implementing the config:
- There’s already a file in
$HOME/.config/snapcraft/snapcraft.cfg
where we save the macaroon. - There’s also
.snapcraft/travis_snapcraft.cfg
created by the enable-ci command, to save the attenuated macaroon that allows to release only to edge. - We have just added a
snap/.snapcraft
directory for global state. - There are quite a few things called config in our source code:
$ grep -r config snapcraft/
. A cleanup on the source code to clarify the concepts would be nice.
1 Like