Stage-packages causes build failure

This gets me into a different problem. I pull few others repo’s while building my snap and I see pull failure:

device:~/ostpm_24mar/os-tpm$ sudo SNAPCRAFT_BUILD_ENVIRONMENT=host snapcraft Pulling os-util Cloning into ‘/home/busybox/ostpm_24mar/os-tpm/parts/os-util/src’… git@stash.xyz.com: Permission denied (publickey). fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. Failed to pull source, command ‘git clone --recursive --branch brd_sys_info_getenv ssh://git@stash.xyz.com/emb/os-util.git /home/busybox/ostpm_24mar/os-tpm/parts/os-util/src’ exited with code 128. device:~/ostpm_24mar/os-tpm$

which is not seen without stage-packages