Don't make artifact checksum skippable

This commit is contained in:
Ettore Di Giacinto
2020-12-09 21:31:07 +01:00
parent f109bab2b4
commit 737fbdbdc1

View File

@@ -587,7 +587,7 @@ func (l *LuetInstaller) downloadPackage(a ArtifactMatch) (compiler.Artifact, err
}
err = artifact.Verify()
if err != nil && !l.Options.Force {
if err != nil {
return nil, errors.Wrap(err, "Artifact integrity check failure")
}
return artifact, nil