https://pantsbuild.org/ logo
#general
Title
# general
p

purple-plastic-57801

03/08/2023, 10:56 PM
When using an http_source I am seeing an issue where the size is larger than expected.. using curl I get one size, downloading local I get another size.. can I make pants tell me the size it received?
w

witty-crayon-22786

03/08/2023, 11:00 PM
are you using
-L
with curl to follow links?
p

purple-plastic-57801

03/08/2023, 11:00 PM
Yup. Used
Copy code
curl -L $URL | tee >(wc -c) >(shasum -a 256) >/dev/null
Works for the other 3 http sources I have 🤔
Hmmm the curl command gave me the wrong values running wc -c and shasum -a 256 against the file worked..
5 Views