Skip to content

Commit

Permalink
Make 'atlas install myfile.nimble' work (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
iffy authored Aug 11, 2024
1 parent bbd4131 commit 37aaee2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/atlas.nim
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,9 @@ proc traverse(c: var AtlasContext; nc: var NimbleContext; start: string): seq[Cf
proc installDependencies(c: var AtlasContext; nc: var NimbleContext; nimbleFile: string) =
# 1. find .nimble file in CWD
# 2. install deps from .nimble
let (dir, pkgname, _) = splitFile(nimbleFile)
var (dir, pkgname, _) = splitFile(nimbleFile)
if dir == "":
dir = "."
info c, pkgname, "installing dependencies for " & pkgname & ".nimble"
var g = createGraph(c, createUrlSkipPatterns(dir))
let paths = traverseLoop(c, nc, g)
Expand Down

0 comments on commit 37aaee2

Please sign in to comment.