mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-29 01:14:41 +00:00
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:
9
koch.nim
9
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)
|
||||
|
||||
Reference in New Issue
Block a user