Skip to content

Commit

Permalink
Debug test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Nov 6, 2023
1 parent e58e09f commit 36b72f1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tools/build_defs/repo/cache.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ machines without the file in the cache. This behavior can be disabled with
""".format(env = NO_DEFAULT_CANONICAL_ID_ENV)

def get_default_canonical_id(repository_ctx, urls):
print(repository_ctx.os.environ)
"""Returns the default canonical id to use for downloads."""
if repository_ctx.os.environ.get(NO_DEFAULT_CANONICAL_ID_ENV) == "1":
return ""
Expand All @@ -45,4 +46,5 @@ def get_default_canonical_id(repository_ctx, urls):
# 3. Order of urls is flipped to [A, B].
# 4. Fetch would reuse cache entry for "A B", even though A may be broken (it has never been
# fetched before).
print("Canonical ID: " + str(urls))
return " ".join(urls)

0 comments on commit 36b72f1

Please sign in to comment.