Disable GitHub tree hash mismatch warning

This commit is contained in:
Eelco Dolstra 2023-12-14 13:38:10 +01:00
parent 1fce12ec32
commit 06e106beff

View file

@ -238,12 +238,14 @@ struct GitArchiveInputScheme : InputScheme
cache->upsert(treeHashKey, Attrs{{"treeHash", tarballInfo.treeHash.gitRev()}});
cache->upsert(lastModifiedKey, Attrs{{"lastModified", (uint64_t) tarballInfo.lastModified}});
#if 0
if (upstreamTreeHash != tarballInfo.treeHash)
warn(
"Git tree hash mismatch for revision '%s' of '%s': "
"expected '%s', got '%s'. "
"This can happen if the Git repository uses submodules.",
rev->gitRev(), input.to_string(), upstreamTreeHash->gitRev(), tarballInfo.treeHash.gitRev());
#endif
return {std::move(input), tarballInfo};
}