Declaratively defining environment variables

Just double checking: this environment declaration is not yet documented on docs.snapcraft.io, right?

My question is: is this declaration for run-time, or for build-time, or for both?

Yes, the way this environment declaration looks too much like that in various CI configurations, e.g. environment: in appveyor.yml and .circleci/config.yml, as well as env in .travis.yml.

True, snapcraft is not a CI, but I think a clarification would be really nice in order to avoid confusion.
See https://discourse.gohugo.io/t/hugo-0-48-released/13908/9 for a real-life example.

Thank you!

1 Like