Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixes #110; make it compatible with Nim 2.0.0 #112

Merged
merged 1 commit into from
Feb 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion src/depgraphs.nim
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,12 @@ proc traverseRelease(c: var AtlasContext; nc: NimbleContext; g: var DepGraph; id
if found != 1:
pv.req = UnknownReqs
else:
let nimbleContents = readFile(nimbleFile)
when (NimMajor, NimMinor, NimPatch) == (2, 0, 0):
# bug #110; make it compatible with Nim 2.0.0
# ensureMove requires mutable places when version < 2.0.2
var nimbleContents = readFile(nimbleFile)
else:
let nimbleContents = readFile(nimbleFile)
if lastNimbleContents == nimbleContents:
pv.req = g.nodes[idx].versions[^1].req
else:
Expand Down
Loading