The golden generator test incorrectly directly references the structure of the bazel-out tree, which is an implementation detail that changes based on machine type and build configuration. e.g. if you compile with --compilation_mode=opt targeting x86_64 then the output will be under bazel-out/k8-opt.
See https://bazel.build/docs/user-manual#configuration-specific-data