fontist / formulas

Fontist Font Formulas
6 stars 0 forks source link

Checksum mismatch for "Noto Sans" #130

Closed ronaldtse closed 1 year ago

ronaldtse commented 2 years ago
$ fontist install "noto sans"
Calling `DidYouMean::SPELL_CHECKERS.merge!(error_name => spell_checker)' has been deprecated. Please call `DidYouMean.correct_error(error_name, spell_checker)' instead.
Font "noto sans" not found locally.
Downloading font "google/noto_sans" from https://fonts.google.com/download?family=Noto%20Sans
Downloading: 562% (4/0 MiB), 3.82 MiB/s, done.
SHA256 checksum mismatch for https://fonts.google.com/download?family=Noto%20Sans: ed710fae47bc332850106e191131bb182c8a1f38df805bc808ab0c639a7b3cdf, should be da79b459c3de76bd2d354da8ad94ee332d90487c50880845118f4dfa568b7c0f.
Installing font "google/noto_sans".
...

But it still installed properly.

alexeymorozov commented 2 years ago

Updated the checksum.

Currently it only warns but not fail on checksum mismatch.

Automatic update keeps formulas updated when fonts change, but doesn't when other files in an archive change: https://github.com/fontist/fontist/blob/main/lib/fontist/import/google.rb#L20

May be it should track of other files too, so checksums stay up-to-date.