We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aded508 commit d59ea80Copy full SHA for d59ea80
scripts/upgrade-operator-sdk.py
@@ -397,9 +397,7 @@ def _detect_operator_sdk_version() -> str:
397
398
399
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))
+ """Return the latest stable Go patch for the minor declared in *gomod* content."""
403
m = re.search(r"^go\s+(\d+\.\d+)(?:\.\d+)?", gomod, re.MULTILINE)
404
if not m:
405
die("Failed to parse Go version from go.mod")
0 commit comments