I getting an error when I follow this example: <ht...
# plugins
p
I getting an error when I follow this example: https://www.pantsbuild.org/docs/rules-api-file-system#createdigest
Copy code
digest = await Get(
        Digest,
        CreateDigest([FileContent(entry_points_txt_path, entry_points_txt_contents)]),
    )
which gives me this error:
Copy code
TypeError: Invalid Get. The third argument `CreateDigest([FileContent(path=contrib/runners/noop_runner.egg-info/entry_points.txt, content=(len:59), is_executable=False)])` must have the exact same type as the second argument, <class 'pants.engine.internals.native_engine.PyDigest'>, but had the type <class 'pants.engine.fs.CreateDigest'>.
Am I doing something wrong with CreateDigest?
Oh that's not nice. I had to remove the trailing comma after CreateDigest:
Copy code
digest = await Get(
        Digest,
        CreateDigest([FileContent(entry_points_txt_path, entry_points_txt_contents)])
    )
Why does it think I provided three params when I have two commas?
h