JuliaLang / Pkg.jl

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

Dirty registry #929

Closed ohadle closed 5 years ago

ohadle commented 5 years ago

Not sure how this happened, but I got this warning and couldn't update:

(v1.0) pkg> add Gadfly
  Updating registry at `C:\Users\ohadl\.julia\registries\General`
┌ Warning: Some registries failed to update:
│     — `C:\Users\ohadl\.julia\registries\General` — registry dirty
└ @ Pkg.API C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:157
 Resolving package versions...
  Updating `C:\Users\ohadl\.julia\environments\v1.0\Project.toml`
 [no changes]
  Updating `C:\Users\ohadl\.julia\environments\v1.0\Manifest.toml`
 [no changes]

(v1.0) pkg> up
  Updating registry at `C:\Users\ohadl\.julia\registries\General`
┌ Warning: Some registries failed to update:
│     — `C:\Users\ohadl\.julia\registries\General` — registry dirty
└ @ Pkg.API C:\cygwin\home\Administrator\buildbot\worker\package_win64\build\usr\share\julia\stdlib\v1.0\Pkg\src\API.jl:157
 Resolving package versions...
  Updating `C:\Users\ohadl\.julia\environments\v1.0\Project.toml`
 [no changes]
  Updating `C:\Users\ohadl\.julia\environments\v1.0\Manifest.toml`
 [no changes]

Didn't do any funny stuff before, not sure why this was. Deleting C:\Users\ohadl\.julia\registries\General solved the issue.

julia> versioninfo()
Julia Version 1.0.2
Commit d789231e99 (2018-11-08 20:11 UTC)
Platform Info:
  OS: Windows (x86_64-w64-mingw32)
  CPU: Intel(R) Core(TM) i7-4500U CPU @ 1.80GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-6.0.0 (ORCJIT, haswell)
ohadle commented 5 years ago

Reading about dirty repos a bit more I'm still not sure how this happened, but I'm less convinced it's a Pkg issue.

StefanKarpinski commented 5 years ago

It was a transient issue on case insensitive file systems.