Skip to content

Commit 9c5315d

Browse files
committed
safety: only remove prefix if prefix = "next-"
1 parent c718ded commit 9c5315d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prisma.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ let
3434
_commit:
3535
let
3636
# HACK: _commit may be "next-0c19ccc313cf9911a90d99d2ac2eb0280c76c513" instead of "0c19ccc313cf9911a90d99d2ac2eb0280c76c513"
37-
commit = lib.lists.last (lib.splitString "-" _commit);
38-
# prisma >= v7 has fewer components;
37+
commit = lib.strings.removePrefix "next-" _commit;
38+
# prisma >= v7 has fewer components
3939
isv7 = lib.strings.hasPrefix "next-" _commit;
4040
in
4141
if builtins.stringLength commit != 40 then

0 commit comments

Comments
 (0)