We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe9b0da commit e1b5749Copy full SHA for e1b5749
lib/clean-cabal-component.nix
@@ -14,7 +14,11 @@ let
14
# Like normalizeRelativePath but with a trailing / when needed
15
normalizeRelativeDir = dir:
16
let p = normalizeRelativePath dir;
17
- in if p == "" then "" else p + "/";
+ in if p == "" || p == "/"
18
+ then ""
19
+ else if lib.hasSuffix "/" p
20
+ then p
21
+ else p + "/";
22
in
23
if srcStr' == null || package.detailLevel != "FullDetails"
24
then src
0 commit comments