$SNAP_ARCH empty

Documentation (https://docs.snapcraft.io/reference/env) mentions the availability of $SNAP_ARCH. When running snapcraft (either locally or using the github-integration) this variable is not available.

Is this a bug in the documentation or in snapcraft?

I just realized the documentation talks about snap, not snapcraft. For future reference and other people making the same error, these are the variables available:

SNAPCRAFT_PROJECT_GRADE=stable
SNAPCRAFT_PROJECT_VERSION=xxxxx
SNAPCRAFT_PART_SRC=/home/martijn/xxxxx/parts/xxxxx/src
SNAPCRAFT_PARALLEL_BUILD_COUNT=4
SNAPCRAFT_STAGE=/home/martijn/xxxxx/stage
SNAPCRAFT_PROJECT_NAME=xxxxx
SNAPCRAFT_TEMPLATES_DIR=/usr/share/snapcraft/templates
SNAPCRAFT_PRIME=/home/martijn/xxxx/prime
SNAPCRAFTCTL_FEEDBACK_FIFO=/tmp/tmpp0l5qsus/call_feedback
SNAPCRAFT_ARCH_TRIPLET=x86_64-linux-gnu
SNAPCRAFT_INTERPRETER=/usr/bin/python3
SNAPCRAFT_PART_BUILD=/home/martijn/xxxxx/parts/xxxx/build
SNAPCRAFTCTL_CALL_FIFO=/tmp/tmpp0l5qsus/function_call
SNAPCRAFT_PART_INSTALL=/home/martijn/xxxxx/parts/xxxx/install