Closed christophermaier closed 2 years ago
Not sure if this is related/will fix, but the officially supported URL to download is https://static.pantsbuild.org/setup/pants
I tried with the new URL and it behaved in the same manner, unfortunately.
This is related to configuration of custom GH Pages domains.
We have a slightly complicated situation:
The Pants v1 docs are statically served on GH Pages at https://pantsbuild.github.io/ from a dedicated repo (https://github.com/pantsbuild/pantsbuild.github.io/). But we also have second repo (https://github.com/pantsbuild/setup/) that serves GH Pages at a subpath https://pantsbuild.github.io/setup, just for the setup script. This is because GH Pages have to be served under <ORG>.github.io
, you only get one subdomain per org.
The first repo is set up to actually serve from a custom domain, v1.pantsbuild.org, with "Enforce HTTPS" turned on. If you go to a URL under https://pantsbuild.github.io/ GH Pages will redirect to that same URL under https://v1.pantsbuild.org/.
The second repo is affected by the config of the first repo, since it's served as part of the same GH Pages site. However for some reason it doesn't handle HTTPS redirects correctly.
OK, fiddled with the config and waited a while and I think it works now. Can you verify?
Yup, that works for me (both URLs). Thanks very much for digging into this!
I was trying to automate some Pants updates and was looking to use this invocation to update the pants script itself:
However, when I run that, it appears that at some point in the flow, I get redirected to an http site: