JuliaLang / Pkg.jl

Pkg - Package manager for the Julia programming language
https://pkgdocs.julialang.org
Other
613 stars 251 forks source link

check symlinks work on windows on artifact hash mismatch #3745

Closed IanButterworth closed 5 months ago

IanButterworth commented 6 months ago

For if https://github.com/JuliaLang/Pkg.jl/issues/3643 isn't otherwise fixable

nhz2 commented 6 months ago

This works on my Windows computer. If I turn off "Developer Mode" and delete the existing artifacts I get:

julia> using Pkg

julia> Pkg.add("NativeFileDialog")
   Resolving package versions...
ERROR: Unable to automatically download/install artifact 'iso_codes' from sources listed in 'C:\Users\nzimm\.julia\packages\iso_codes_jll\wcUPz\Artifacts.toml'.
Sources attempted:
- https://pkg.julialang.org/artifact/71f68a3d55d73f2e15a3969c241fae2349b1feb5
    Error: Tree Hash Mismatch!
  Expected git-tree-sha1:   71f68a3d55d73f2e15a3969c241fae2349b1feb5
  Calculated git-tree-sha1: 409d6ac4c02dae43ff4fe576b5c5820d0386fb3f"
Note: Julia cannot create symlinks, which may be the reason for the hash mismatch.
You may need to activate Developer Mode in Windows.

- https://github.com/JuliaBinaryWrappers/iso_codes_jll.jl/releases/download/iso_codes-v4.11.0+0/iso_codes.v4.11.0.any.tar.gz
    Error: Tree Hash Mismatch!
  Expected git-tree-sha1:   71f68a3d55d73f2e15a3969c241fae2349b1feb5
  Calculated git-tree-sha1: 409d6ac4c02dae43ff4fe576b5c5820d0386fb3f"
Note: Julia cannot create symlinks, which may be the reason for the hash mismatch.
You may need to activate Developer Mode in Windows.

When I turn "Developer Mode" back on I can add NativeFileDialog without any issues.