hundreds-lion-13128
12/20/2024, 10:52 AMpants peek
outputs the sources fingerprint, but I would be much interested in the dependencies fingerprint too. Is it possible to obtain this?hundreds-lion-13128
12/20/2024, 10:59 AMpants peek $(pants filedeps [..]) | jq -r '.[] | .sources_fingerprint' | shasum | awk '{print $1}'
the next best thing?broad-processor-92400
12/21/2024, 10:54 PMshell_command
). In that case, the BUILD target’s fields matter too, because they’ll influence the codegen output. In the general case the pants.toml options can change things too.
That is to say, if you’re in a constrained situation, a shell pipeline like your idea is reasonable, but a fully general solution built into pants itself is harder 😦