expand updateLock function

This commit is contained in:
Daylin Morgan 2024-11-18 16:26:23 -06:00
parent 29e388d0af
commit 08623c58f2
Signed by: daylin
GPG key ID: 950D13E9719334AD

View file

@ -108,8 +108,9 @@ task updateLock, "workaround for nimble lock probs":
else: projectDir().lastPathPart & ".nimble" else: projectDir().lastPathPart & ".nimble"
if not fileExists nimbleFile: if not fileExists nimbleFile:
quit "expected to find: " & nimbleFile quit "expected to find: " & nimbleFile
rmDir "nimbledeps" rmDir projectDir() / "nimbledeps"
rmFile "nimble.lock" rmFile projectDir() / "nimble.lock"
rmFile projectDir() / "nimble.paths"
exec "nimble lock -l" exec "nimble lock -l"
exec "nimble setup -l" exec "nimble setup -l"