Run the selected ReleaseKit tool through Go
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user