I was trying to automate some Pants updates and wa...
# general
b
I was trying to automate some Pants updates and was looking to use this invocation to update the
pants
script itself:
Copy code
curl --proto "=https" \
    --tlsv1.3 \
    --location \
    --verbose \
    --output ./pants \
    <https://pantsbuild.github.io/setup/pants>
However, when I run that, it appears that at some point in the flow, I get redirected to an
http
site:
Copy code
HTTP/2 301 
< server: <http://GitHub.com|GitHub.com>
< content-type: text/html
< permissions-policy: interest-cohort=()
< location: <http://v1.pantsbuild.org/setup/pants>
< x-github-request-id: 4DDA:0AD7:24AE8:607545:61F8148F
< accept-ranges: bytes
< date: Mon, 31 Jan 2022 16:57:01 GMT
< via: 1.1 varnish
< age: 78
< x-served-by: cache-fty21360-FTY
< x-cache: HIT
< x-cache-hits: 1
< x-timer: S1643648221.348955,VS0,VE1
< vary: Accept-Encoding
< x-fastly-request-id: de662d2ef47f018f97d6677537bf7d7ea081cf13
< content-length: 162
< 
* Ignoring the response-body
{ [162 bytes data]
100   162  100   162    0     0   2793      0 --:--:-- --:--:-- --:--:--  2842
* Connection #0 to host <http://pantsbuild.github.io|pantsbuild.github.io> left intact
* Issue another request to this URL: '<http://v1.pantsbuild.org/setup/pants>'
* Protocol "http" not supported or disabled in libcurl
* Closing connection -1
Is this a known situation?
👀 1