Mismatch tree error when installing package in NFS location

Issues occurs when installing packages (like OpenSpecFun, Zlib,CompilerSupportLibraries) or after package installation (Flux).

``using ("Flux")
  Installed OpenSpecFun_jll ────────────── v0.5.3+3
  Installed CodecZlib ──────────────────── v0.7.0
  Installed BinaryProvider ─────────────── v0.5.10
  Installed Flux ───────────────────────── v0.10.4
  Installed Zygote ─────────────────────── v0.4.20
  Installed ZipFile ────────────────────── v0.9.2
  Installed CompilerSupportLibraries_jll ─ v0.3.3+0
  Installed Zlib_jll ───────────────────── v1.2.11+10
  Installed ZygoteRules ────────────────── v0.2.0
  Installed SpecialFunctions ───────────── v0.10.3
Error: Tree Hash Mismatch!
│   Expected git-tree-sha1:   0fd0fb67de786e5d7b2eb67181d35e4bcab639cf
│   Calculated git-tree-sha1: b5dfbf709a492a96aa4dcaf46616293ce08b7eab
ERROR: LoadError: LoadError: InitError: Unable to automatically install 'CompilerSupportLibraries' from '/home/johndoe/.julia/packages/CompilerSupportLibraries_jll/kmL78/Artifacts.toml'
``

For some reason, the computation of the git-tree-sha1 is not correct for many packages in Julia.
Similar error message is being displayed for OpenSpecFun, Zlib packages (Platform Red Hat Linux cluster x86-64).

One workaround to install the packages successfully is to define:
export JULIA_DEPOT_PATH=dir
where dir has to be a non NFS directory.

Another solution is to install CompilerSupportLibraries manually by creating a folder (named with the git tree sha1 # expected 0fd0fb67de786e5d7b2eb67181d35e4bcab639cf) and install the package in that folder from github:

johndoe@mcn19: mkdir –p ~/.julia/artifacts/0fd0fb67de786e5d7b2eb67181d35e4bcab639cf
johndoe@mcn19: wget -O - https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl/releases/download/CompilerSupportLibraries-v0.3.3+0/CompilerSupportLibraries.v0.3.3.x86_64-linux-gnu-libgfortran4.tar.gz | tar -xzvf - -C ~/.julia/artifacts/0fd0fb67de786e5d7b2eb67181d35e4bcab639cf

You can find all the releases of CompilerSupportLibraries_jll here https://github.com/JuliaBinaryWrappers/CompilerSupportLibraries_jll.jl/releases
select the package based on your Linux architecture (it is very important to download the package specific to the Linux arch, use this following lines in Julia to find your Linux Arch)

julia> using Pkg.BinaryPlatforms
julia> triplet(platform_key_abi())
"x86_64-linux-gnu-libgfortran4-cxx11"

Is there a fix for installation of packages in a NFS location?