From d7bf5def0635ee6fd275d5754d7c9af142c76427 Mon Sep 17 00:00:00 2001 From: jheaff1 Date: Tue, 12 Jul 2022 13:07:31 +0100 Subject: [PATCH] Fix remote cache miss In some cases, the hermetic python toolchain would generate .pyc files when being used, resulting in a remote cache miss. This commit excludes generated files from the "files" filegroup to resolve this issue --- python/repositories.bzl | 1 + 1 file changed, 1 insertion(+) diff --git a/python/repositories.bzl b/python/repositories.bzl index 1441432547..eb7c952f69 100644 --- a/python/repositories.bzl +++ b/python/repositories.bzl @@ -142,6 +142,7 @@ filegroup( ], exclude = [ "**/* *", # Bazel does not support spaces in file names. + "**/__pycache__/**", ], ), )