nixpkgs/pkgs/by-name/ni/nim_lk/nil.patch
eveeifyeve 80f829b69a {mosdepth, nimlsp}: upgrade to nim
nim_lk: fix compatiblity with 2.2.8
2026-07-02 13:36:59 +10:00

13 lines
471 B
Diff

diff --git a/src/nim_lk.nim b/src/nim_lk.nim
index 09ced9d..45c5ddc 100644
--- a/src/nim_lk.nim
+++ b/src/nim_lk.nim
@@ -573,7 +573,7 @@ proc update(bom: JsonNode; bomRef: string; byName: bool): bool =
let comp = bom.getComponent(bomRef, byName)
assert not comp.isNil
var bomRef = comp{"bom-ref"}.getStr
- assert not bomRef.isNil
+ assert bomRef != ""
var suitableRefFound = false
let extRefs = comp{"externalReferences"}
for extRef in extRefs.elems: