bring back OsPath changes
I hope that the windows test suite failure on appveyor was fixed by updating to a newer windows there. I have not been able to reproduce that failure in a windows 11 VM run locally.
This commit is contained in:
parent
f0ab439c95
commit
84291b6014
119 changed files with 1003 additions and 647 deletions
|
@ -29,12 +29,12 @@ import Data.Word
|
|||
genKeyName :: String -> S.ShortByteString
|
||||
genKeyName s
|
||||
-- Avoid making keys longer than the length of a SHA256 checksum.
|
||||
| bytelen > sha256len = S.toShort $ encodeBS $
|
||||
truncateFilePath (sha256len - md5len - 1) s' ++ "-" ++
|
||||
show (md5 bl)
|
||||
| otherwise = S.toShort $ encodeBS s'
|
||||
| bytelen > sha256len = S.toShort $
|
||||
truncateFilePath (sha256len - md5len - 1) s'
|
||||
<> "-" <> encodeBS (show (md5 bl))
|
||||
| otherwise = S.toShort s'
|
||||
where
|
||||
s' = preSanitizeKeyName s
|
||||
s' = encodeBS $ preSanitizeKeyName s
|
||||
bl = encodeBL s
|
||||
bytelen = fromIntegral $ L.length bl
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue