Skip to content

Commit

Permalink
Prepare to bootstrap with SAT (#1207)
Browse files Browse the repository at this point in the history
* Prepare to bootstrap with SAT

* clone SAT

* fix path
  • Loading branch information
jmgomez committed Apr 10, 2024
1 parent d158453 commit 45e4ba8
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/nimble.nim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ import std/options as std_opt

import strutils except toLower
from unicode import toLower
import sat/sat
when defined(nimNimbleBootstrap):
import ../dist/sat/src/sat/sat
else:
import sat/sat
import nimblepkg/packageinfotypes, nimblepkg/packageinfo, nimblepkg/version,
nimblepkg/tools, nimblepkg/download, nimblepkg/common,
nimblepkg/publish, nimblepkg/options, nimblepkg/packageparser,
Expand Down
5 changes: 4 additions & 1 deletion src/nimblepkg/nimblesat.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import sat/[sat, satvars]
when defined(nimNimbleBootstrap):
import ../../dist/sat/src/sat/[sat, satvars]
else:
import sat/[sat, satvars]
import version, packageinfotypes, download, packageinfo, packageparser, options,
sha1hashes

Expand Down
7 changes: 5 additions & 2 deletions tests/private/clone.nim
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,10 @@ proc cloneDependency(destDirBase: string, url: string, commit = commitHead,

proc command =
const distDir = "dist"
const commit = "3fa15df7d27ecef624ed932d60f63d6a8949618d"
cloneDependency(distDir, "https://github.com/nim-lang/checksums.git", commit)
const ChecksumsStableCommit = "3fa15df7d27ecef624ed932d60f63d6a8949618d"
const SatStableCommit = "faf1617f44d7632ee9601ebc13887644925dcc01"

cloneDependency(distDir, "https://github.com/nim-lang/checksums.git", ChecksumsStableCommit)
cloneDependency(distDir, "https://github.com/nim-lang/sat.git", SatStableCommit)

command()

0 comments on commit 45e4ba8

Please sign in to comment.