Documentation for SNAPCRAFT_* environment variables


#1

Where would one find documentation around the SNAPCRAFT_* environment variables?

The links in the docs (i.e. those parts metadata - prepare points to this page but that only outlines the SNAP_* vars.

I was able to find what I wanted by using:

override-build: |
env
snapcraftctl build

But that’s a bit of a pain to do.

For context the parts install dir is empty after the build step thus there is nothing to stage/prime. I’m pretty certain its because I need to move something around in the build step, i.e. from $SNAPCRAFT_PART_BUILD/build/install/bin to $SNAPCRAFT_PART_INSTALL (so parts/juju-db/build/build/install/bin -> parts/juju-db/install/)


#2

Check out Environment Variables that Snapcraft Exposes


#3

Excellent, thank you @Lin-Buo-Ren, I’m not sure why my search didn’t uncover that.