Skip to content

Commit 0888913

Browse files
authored
Merge pull request #8777 from haskell/mergify/bp/3.10/pr-8769
don't auto-download in hash validation phase (backport #8769)
2 parents 280a7a7 + b1b0e33 commit 0888913

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cabal-install/src/Distribution/Client/FetchUtils.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ verifyFetchedTarball verbosity repoCtxt repo pkgid =
134134
in handleError $ do
135135
exists <- doesFileExist file
136136
if not exists
137-
then return False
137+
then return True -- if the file does not exist, it vacuously passes validation, since it will be downloaded as necessary with what we will then check is a valid hash.
138138
else case repo of
139139
-- a secure repo has hashes we can compare against to confirm this is the correct file.
140140
RepoSecure{} ->

0 commit comments

Comments
 (0)