Skip to content

Commit 3f9c269

Browse files
authored
fixes nimsugget with Checksums deps (#24882)
ref #24881
1 parent 11e4bd6 commit 3f9c269

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

koch.nim

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,12 @@ proc bundleAtlasExe(latest: bool, args: string) =
176176
nimCompile("dist/atlas/src/atlas.nim",
177177
options = "-d:release --noNimblePath -d:nimAtlasBootstrap " & args)
178178

179+
proc bundleChecksums(latest: bool) =
180+
let commit = if latest: "HEAD" else: ChecksumsStableCommit
181+
cloneDependency(distDir, "https://github.com/nim-lang/checksums.git", commit, allowBundled = true)
182+
179183
proc bundleNimsuggest(args: string) =
184+
bundleChecksums(false)
180185
nimCompileFold("Compile nimsuggest", "nimsuggest/nimsuggest.nim",
181186
options = "-d:danger " & args)
182187

@@ -205,10 +210,6 @@ proc bundleWinTools(args: string) =
205210
nimCompile(r"tools\downloader.nim",
206211
options = r"--cc:vcc --app:gui -d:ssl --noNimblePath --path:..\ui " & args)
207212

208-
proc bundleChecksums(latest: bool) =
209-
let commit = if latest: "HEAD" else: ChecksumsStableCommit
210-
cloneDependency(distDir, "https://github.com/nim-lang/checksums.git", commit, allowBundled = true)
211-
212213
proc zip(latest: bool; args: string) =
213214
bundleChecksums(latest)
214215
bundleNimbleExe(latest, args)

0 commit comments

Comments
 (0)