From ea4df85f34c5618b1301741d248fae2011ced3d2 Mon Sep 17 00:00:00 2001 From: ringabout <43030857+ringabout@users.noreply.github.com> Date: Thu, 17 Apr 2025 01:44:53 +0800 Subject: [PATCH] fixes nimsugget with Checksums deps (#24882) ref https://github.com/nim-lang/Nim/issues/24881 (cherry picked from commit 3f9c269013298003aaeef3a83682cd98b4b5356d) --- koch.nim | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/koch.nim b/koch.nim index 457ab5e832..9d15ff18bd 100644 --- a/koch.nim +++ b/koch.nim @@ -176,7 +176,12 @@ proc bundleAtlasExe(latest: bool, args: string) = nimCompile("dist/atlas/src/atlas.nim", options = "-d:release --noNimblePath -d:nimAtlasBootstrap " & args) +proc bundleChecksums(latest: bool) = + let commit = if latest: "HEAD" else: ChecksumsStableCommit + cloneDependency(distDir, "https://github.com/nim-lang/checksums.git", commit, allowBundled = true) + proc bundleNimsuggest(args: string) = + bundleChecksums(false) nimCompileFold("Compile nimsuggest", "nimsuggest/nimsuggest.nim", options = "-d:danger " & args) @@ -205,10 +210,6 @@ proc bundleWinTools(args: string) = nimCompile(r"tools\downloader.nim", options = r"--cc:vcc --app:gui -d:ssl --noNimblePath --path:..\ui " & args) -proc bundleChecksums(latest: bool) = - let commit = if latest: "HEAD" else: ChecksumsStableCommit - cloneDependency(distDir, "https://github.com/nim-lang/checksums.git", commit, allowBundled = true) - proc zip(latest: bool; args: string) = bundleChecksums(latest) bundleNimbleExe(latest, args)