Skip to content

Commit ecc92a3

Browse files
authored
Merge pull request haskell#8769 from haskell/gb/validate-no-download
don't auto-download in hash validation phase
2 parents 869ecdc + 5497325 commit ecc92a3

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)