Skip to content

Commit 243857c

Browse files
committed
[ci] Strip any protocol prefix in the mirror diagnostic
The getent diagnostic stripped only https://, so an http:// mirror override resolved nothing; ${mirror#*://} matches how ci/bazel_mirror_downloader.sh extracts the host. Signed-off-by: Thomas Desrosiers <thomas@anyscale.com>
1 parent 5f03567 commit 243857c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ci/pypi_proxy_profile.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ _rayci_pypi_index_setup() {
4444
# mirror is deployed and this fleet has no route to it". getent is Linux-only;
4545
# on macOS the address line is simply absent.
4646
local resolved
47-
resolved="$(getent hosts "${mirror#https://}" 2>/dev/null | awk '{print $1}' | paste -sd, -)"
47+
resolved="$(getent hosts "${mirror#*://}" 2>/dev/null | awk '{print $1}' | paste -sd, -)"
4848
echo "pypi index: mirror=${mirror} resolves_to=${resolved:-<unresolved>}"
4949

5050
# Bazel's own downloader is a separate mechanism from pip's index and gets its

0 commit comments

Comments
 (0)