Run the selected ReleaseKit tool through Go

This commit is contained in:
2026-11-02 14:21:52 +00:00
parent 937b9723d4
commit 061f01c081
3 changed files with 7 additions and 10 deletions

View File

@@ -106,10 +106,11 @@ def verify_bootstrap(repository, root, environment, selected_go):
version = run([launcher, "version"], root, environment).strip()
if version != f"releasekit {selected_version}":
raise RuntimeError(f"launcher used an unexpected tool: {version}")
build_info = run(
["go", "version", "-m", str(repository / ".releasekit/bin/releasekit")],
root, environment,
)
tool_path = run(
["go", "tool", "-n", f"{RELEASEKIT_MODULE}/cmd/releasekit"],
repository, environment,
).strip()
build_info = run(["go", "version", "-m", tool_path], root, environment)
if selected_go not in build_info.splitlines()[0]:
raise RuntimeError("launcher did not build with the selected local Go")
if f"\tmod\t{RELEASEKIT_MODULE}\t{selected_version}\t" not in build_info: