fixes nimsugget with Checksums deps (#24882)

ref https://github.com/nim-lang/Nim/issues/24881

(cherry picked from commit 3f9c269013)
This commit is contained in:
ringabout
2025-04-17 01:44:53 +08:00
committed by narimiran
parent e3a2af00ea
commit ea4df85f34

View File

@@ -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)