@@ -70,7 +70,7 @@ def _go_download_sdk_impl(ctx):
7070 ctx .report_progress ("Finding Go SHA-256 sums" )
7171 ctx .download (
7272 url = [
73- "https://golang.org /dl/?mode=json&include=all" ,
73+ "https://go.dev /dl/?mode=json&include=all" ,
7474 "https://golang.google.cn/dl/?mode=json&include=all" ,
7575 ],
7676 output = "versions.json" ,
@@ -89,10 +89,10 @@ def _go_download_sdk_impl(ctx):
8989 if not highest_version or _version_less (highest_version , pv ):
9090 highest_version = pv
9191 if not highest_version :
92- fail ("did not find any Go versions in https://golang.org /dl/?mode=json" )
92+ fail ("did not find any Go versions in https://go.dev /dl/?mode=json" )
9393 version = _version_string (highest_version )
9494 if version not in sdks_by_version :
95- fail ("did not find version {} in https://golang.org /dl/?mode=json" .format (version ))
95+ fail ("did not find version {} in https://go.dev /dl/?mode=json" .format (version ))
9696 sdks = sdks_by_version [version ]
9797
9898 if platform not in sdks :
@@ -327,11 +327,11 @@ def _detect_sdk_version(ctx, goroot):
327327 return version
328328
329329def _parse_versions_json (data ):
330- """Parses version metadata returned by golang.org .
330+ """Parses version metadata returned by go.dev .
331331
332332 Args:
333333 data: the contents of the file downloaded from
334- https://golang.org /dl/?mode=json. We assume the file is valid
334+ https://go.dev /dl/?mode=json. We assume the file is valid
335335 JSON, is spaced and indented, and is in a particular format.
336336
337337 Return:
0 commit comments