hundreds-breakfast-49010
09/05/2019, 10:23 PMUrlToFetch
from a BinaryToolBase
?witty-crayon-22786
09/05/2019, 11:30 PMhundreds-breakfast-49010
09/06/2019, 5:46 PMaloof-angle-91616
09/06/2019, 6:42 PMaloof-angle-91616
09/06/2019, 6:42 PMaverage-vr-56795
09/09/2019, 9:40 PMAmbiguous rules to compute Get(Digest, DirectoryWithPrefixToStrip) with parameter types (Digest+OptionsBootstrapper+PythonTestsAdaptor):
(Digest, [DirectoryWithPrefixToStrip], <intrinsic>) for DirectoryWithPrefixToStrip
Param(Digest)
which confuses me, because I don’t see any places that my change may introduce and ambiguity…aloof-angle-91616
09/09/2019, 9:40 PMhundreds-breakfast-49010
09/09/2019, 9:41 PMhundreds-breakfast-49010
09/09/2019, 9:41 PMx = yield Get(Y, ...)
, that will break?hundreds-breakfast-49010
09/09/2019, 9:41 PMGet
are otherwise differentaverage-vr-56795
09/09/2019, 9:41 PMaverage-vr-56795
09/09/2019, 9:42 PMaloof-angle-91616
09/09/2019, 9:43 PMaverage-vr-56795
09/09/2019, 9:43 PM@rule(InjectedInitDigest, [Snapshot])
def inject_init(snapshot):
"""Ensure that every package has an __init__.py file in it."""
missing_init_files = tuple(sorted(identify_missing_init_files(snapshot.files)))
if not missing_init_files:
new_init_files_digest = EMPTY_DIRECTORY_DIGEST
else:
new_init_files_digest = yield Get(Digest, InputFilesContent(FilesContent(tuple(
FileContent(
path=path,
content=b'',
) for path in missing_init_files
))))
# TODO(#7710): Once this gets fixed, merge the original source digest and the new init digest
# into one unified digest.
yield InjectedInitDigest(directory_digest=new_init_files_digest)
aloof-angle-91616
09/09/2019, 9:48 PMaverage-vr-56795
09/09/2019, 9:48 PMaloof-angle-91616
09/09/2019, 9:48 PMAmbiguous rules to compute Get(Digest, DirectoryWithPrefixToStrip) with parameter types (Digest+OptionsBootstrapper+PythonTestsAdaptor):
aloof-angle-91616
09/09/2019, 9:48 PMaloof-angle-91616
09/09/2019, 9:48 PMyield Get()
for the same thing twice in the same rule tooaloof-angle-91616
09/09/2019, 9:49 PMDigest
is already provided as a Param
somewhere, either explicitly as a RootRule
or just as a yield Get()
from another rulealoof-angle-91616
09/09/2019, 9:49 PMyield Get()
for something that is somehow transitively already providedaloof-angle-91616
09/09/2019, 9:49 PMaverage-vr-56795
09/09/2019, 9:50 PMaloof-angle-91616
09/09/2019, 9:50 PMaverage-vr-56795
09/09/2019, 9:51 PMwitty-crayon-22786
09/09/2019, 10:34 PMwitty-crayon-22786
09/09/2019, 10:35 PMaverage-vr-56795
09/09/2019, 10:55 PMwitty-crayon-22786
09/09/2019, 11:11 PMwitty-crayon-22786
09/09/2019, 11:12 PM