Hello Joseph, As you said we generally export env. variables in launching script to deploy a customized part, not pretty sure we now have a plugin or something to support this "before pull the source"...
BR. Jin On Tue, Mar 21, 2017 at 5:09 AM, Joseph Rushton Wakeling < joseph.wakel...@webdrake.net> wrote: > Hello folks, > > Is it possible to set environment variables to be used when creating a > part of a snap? > > I guess one could use the `prepare:` scriptlet to do something like > `export MY_VAR=whatever` but I'd like the environment variable to be set > before I even pull the source. (If you're wondering why: I'm considering > whether I can use git environment variables to work around the > launchpad-buildd constraints on support for git:// URLs.) > > I'm not seeing anything relevant in https://snapcraft.io/docs/buil > d-snaps/parts, hence why I ask here. > > Thanks & best wishes, > > -- Joe > > -- > Snapcraft mailing list > Snapcraft@lists.snapcraft.io > Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm > an/listinfo/snapcraft > -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft