Skip to content

Conversation

@kuba--
Copy link
Contributor

@kuba-- kuba-- commented Oct 18, 2018

Signed-off-by: kuba-- kuba@sourced.tech

If the only reason why we try to download MD5 is to check if the file is up to date (nothing else) then lets make matchHash just as a boolean function, instead of returning boolean and an error (it's like a fuzzy logic).
At least it will suppress the annoying warning.
I know it may look like not a right fix, but so far we don't verify hashes (saying it's middleman hack or whatever). We just say latest or not and in case of false we double check it. So logging missed md5 as a warning is too annoying IMO.

Signed-off-by: kuba-- <kuba@sourced.tech>
@kuba-- kuba-- requested review from a team and campoy October 18, 2018 09:11
@kuba-- kuba-- added the proposal Just to propose some changes label Oct 18, 2018
Signed-off-by: kuba-- <kuba@sourced.tech>
@kuba-- kuba-- merged commit 02fab63 into src-d:master Oct 20, 2018
@kuba-- kuba-- deleted the surpress-md5-log branch October 20, 2018 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

proposal Just to propose some changes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants