From c770c0ad0811eaae3eb7b2da9dd598a65aa98eec Mon Sep 17 00:00:00 2001
From: ringabout <43030857+ringabout@users.noreply.github.com>
Date: Thu, 25 Jul 2024 02:13:32 +0800
Subject: [PATCH] improve mangling packages version names with checksums
(#23888)
follow up https://github.com/nim-lang/Nim/pull/19821
dights cannot clash with letters 'Z' and 'O'
For `threading-0.2.0-288108d1dfa34d5ade5ce4d922af51909c83cebf`
Before:
raiseNilAccess__OOZOOZOnimbleZpkgs50Zthreading4548O50O4845505656494856d49dfa5152d53ade53ce52d575050af5349574857c5651cebfZthreadingZsmartptrs_u4
After:
raiseNilAccess__OOZOOZOnimbleZpkgs2Zthreading450O2O045288108d1dfa34d5ade5ce4d922af51909c83cebfZthreadingZsmartptrs_u4
nimble or something might use `git rev-parse --short HEAD` to
shorten the length of package version names ref
https://github.com/nim-lang/nimble/pull/913
---
compiler/msgs.nim | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/compiler/msgs.nim b/compiler/msgs.nim
index 1b223417c4..405c2e8d98 100644
--- a/compiler/msgs.nim
+++ b/compiler/msgs.nim
@@ -683,14 +683,14 @@ proc uniqueModuleName*(conf: ConfigRef; fid: FileIndex): string =
for i in 0..