diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-05-02 16:49:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-02 10:49:17 +0200 |
commit | afc30ca87948c11f603f6686d4b10d3dcc27776a (patch) | |
tree | d52781ac11128914f43fce51fa8c59fb54bb7acf /compiler/nimblecmd.nim | |
parent | 2844ac8b5eb6efce18e10b246e874719b20d36b2 (diff) | |
download | Nim-afc30ca87948c11f603f6686d4b10d3dcc27776a.tar.gz |
fixes #19863; move sha1, md5 to nimble packages for 2.0 (#21702)
* move sha1, md5 to nimble packages * boot the compiler * fixes tests * build the documentation * fixes docs * lol, I forgot koch.nim * add `nimHasChecksums` define * clone checksums but maybe copying is better * bump nimble hash * use ChecksumsStableCommit * fixes tests * deprecate them * fixes paths * fixes koch
Diffstat (limited to 'compiler/nimblecmd.nim')
-rw-r--r-- | compiler/nimblecmd.nim | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/nimblecmd.nim b/compiler/nimblecmd.nim index b6b08ccd4..440d35fe5 100644 --- a/compiler/nimblecmd.nim +++ b/compiler/nimblecmd.nim @@ -10,11 +10,13 @@ ## Implements some helper procs for Nimble (Nim's package manager) support. import parseutils, strutils, os, options, msgs, sequtils, lineinfos, pathutils, - std/sha1, tables + tables when defined(nimPreviewSlimSystem): import std/[syncio, assertions] +import ../dist/checksums/src/checksums/sha1 + proc addPath*(conf: ConfigRef; path: AbsoluteDir, info: TLineInfo) = if not conf.searchPaths.contains(path): conf.searchPaths.insert(path, 0) |