Skip to content

Commit d59ea80

Browse files
fixup! scripts: fetch last patch for k8s go libraries
1 parent aded508 commit d59ea80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/upgrade-operator-sdk.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,7 @@ def _detect_operator_sdk_version() -> str:
397397

398398

399399
def _detect_go_toolchain_from_gomod(gomod: str) -> str:
400-
"""Return the latest stable Go patch for the minor pinned by *sdk_version*."""
401-
log_info("Querying operator-sdk go.mod for Go version...")
402-
gomod = _fetch_text(_URL_OPERATOR_SDK_GOMOD.format(version=sdk_version))
400+
"""Return the latest stable Go patch for the minor declared in *gomod* content."""
403401
m = re.search(r"^go\s+(\d+\.\d+)(?:\.\d+)?", gomod, re.MULTILINE)
404402
if not m:
405403
die("Failed to parse Go version from go.mod")

0 commit comments

Comments
 (0)