Skip to content

Commit

Permalink
Revert "Reformat"
Browse files Browse the repository at this point in the history
This reverts commit 4917d57.
  • Loading branch information
9999years committed Dec 20, 2024
1 parent 4917d57 commit 324b811
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cabal-install/src/Distribution/Client/Config.hs
Original file line number Diff line number Diff line change
Expand Up @@ -1705,16 +1705,16 @@ postProcessRepo lineno reponameStr repo0 = do
"file+noindex:" -> do
-- defer to file-uri package which is more accurate when parsing Windows
-- paths
let uri' = BS8.pack $ "file:" ++ uriToString id ((remoteRepoURI repo0){uriScheme = ""}) []
let uri' = BS8.pack $ "file:" ++ uriToString id ((remoteRepoURI repo0) { uriScheme = "" }) []
case parseFileURI (if buildOS == Windows then ExtendedWindows else ExtendedPosix) uri' of
Left{} -> fail $ "Invalid path in URI: " <> show (remoteRepoURI repo0)
Right uri'' ->
return $
Left $
LocalRepo
reponame
(BS8.unpack $ filePath uri'')
(uriFragment (remoteRepoURI repo0) == "#shared-cache")
return
$ Left
$ LocalRepo
reponame
(BS8.unpack $ filePath uri'')
(uriFragment (remoteRepoURI repo0) == "#shared-cache")
_ -> do
let repo = repo0{remoteRepoName = reponame}

Expand Down

0 comments on commit 324b811

Please sign in to comment.