Skip to content

Artifact hashes wrong on MacOS when depot resides on a FAT32 drive #2317

Closed
@IanButterworth

Description

@IanButterworth

In testing performance related to slow disk access, I moved the depot onto a FAT32 formatted USB pen drive and noticed that the artifact hashes are repeatably different.

This is probably highly unlikely to happen in the wild, but I thought I'd report.

julia> versioninfo()
Julia Version 1.7.0-DEV.185
Commit 770e228c61 (2020-12-29 00:32 UTC)
Platform Info:
  OS: macOS (x86_64-apple-darwin19.5.0)
  CPU: Intel(R) Core(TM) i7-8850H CPU @ 2.60GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-11.0.0 (ORCJIT, skylake)
Environment:
  JULIA_NUM_THREADS = 6
  JULIA_DEPOT_PATH = /Volumes/pendrive/.julia

(@v1.7) pkg> add libpng_jll
   Resolving package versions...
   Installed libpng_jll ─ v1.6.37+6
 Downloading artifact: libpng
┌ Error: Tree Hash Mismatch!
│   Expected git-tree-sha1:   fb2695d9f2ba598ca2213b0768aac906ebcd1000
│   Calculated git-tree-sha1: 0e2015d6296e3f1119adcc39a621077dfe5ce50f
  Downloaded artifact: libpng

(@v1.7) pkg> st
Status `/Volumes/pendrive/.julia/environments/v1.7/Project.toml`
→ [b53b4c65] libpng_jll v1.6.37+6
Info packages marked with → not downloaded, use `instantiate` to download

(@v1.7) pkg> instantiate
 Downloading artifact: libpng
┌ Error: Tree Hash Mismatch!
│   Expected git-tree-sha1:   fb2695d9f2ba598ca2213b0768aac906ebcd1000
│   Calculated git-tree-sha1: 0e2015d6296e3f1119adcc39a621077dfe5ce50f
  Downloaded artifact: libpng
 Downloading artifact: libpng
┌ Error: Tree Hash Mismatch!
│   Expected git-tree-sha1:   fb2695d9f2ba598ca2213b0768aac906ebcd1000
│   Calculated git-tree-sha1: 0e2015d6296e3f1119adcc39a621077dfe5ce50f
  Downloaded artifact: libpng

julia> using libpng_jll
ERROR: InitError: Artifact "libpng" was not installed correctly. Try `using Pkg; Pkg.instantiate()` to re-install all missing resources.
Stacktrace:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions