Running Yocto build in containers gives "permission denied" error

Hi, I am trying to run this example in a docker container, and I get the following error:

Building Go cmd/dist using /home/dev/mender-raspberrypi/output/build/tmp/work/x86_64-linux/go-cross-cortexa7t2hf-neon-vfpv4/1.12.1-r0/recipe-sysroot-native/usr/lib/go.
| failed to initialize build cache at /home/.cache/go-build: mkdir /home/.cache: permission denied

Would you give some guidance on what could be the problem, why does go trying to cache in the home directory not under the user?

OK, I had to cherry pick the following commit to fix the above issue:http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=1a82468d2d94b44cc122ee2172014d712e35563d

1 Like

Thanks for reporting back

1 Like