Pkg.jl: Pkg server registry is out of sync

Created on 23 Feb 2020  Â·  9Comments  Â·  Source: JuliaLang/Pkg.jl

@DilumAluthge suggested I file an issue.

I get build failures on Julia master:

  Installed SIMDPirates ──────── v0.3.16
  Installed SLEEFPirates ─────── v0.3.7
   Building VectorizationBase → `~/.julia/packages/VectorizationBase/PBHT6/deps/build.log`
┌ Error: Pkg.Resolve.ResolverError("Unsatisfiable requirements detected for package VectorizationBase [3d5dd08c]:\n VectorizationBase [3d5dd08c] log:\n ├─possible versions are: [0.1.0-0.1.10, 0.2.0-0.2.7, 0.3.0-0.3.1] or uninstalled\n └─restricted to versions 0.4.1 by an explicit requirement — no versions left", nothing)
â”” @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1365
   Building SLEEFPirates ─────→ `~/.julia/packages/SLEEFPirates/lj5CC/deps/build.log`
┌ Error: Pkg.Resolve.ResolverError("Unsatisfiable requirements detected for package SIMDPirates [21efa798]:\n SIMDPirates [21efa798] log:\n ├─possible versions are: [0.1.0-0.1.8, 0.2.0-0.2.3, 0.3.0-0.3.13] or uninstalled\n └─restricted to versions 0.3.16 by an explicit requirement — no versions left", nothing)
â”” @ Pkg.Operations /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:1365
ERROR: Unsatisfiable requirements detected for package SIMDPirates [21efa798]:
 SIMDPirates [21efa798] log:
 ├─possible versions are: [0.1.0-0.1.8, 0.2.0-0.2.3, 0.3.0-0.3.13] or uninstalled
 └─restricted to versions 0.3.15-0.3 by an explicit requirement — no versions left
Stacktrace:
 [1] check_constraints(::Pkg.Resolve.Graph) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:940
 [2] Pkg.Resolve.Graph(::Dict{Base.UUID,Set{VersionNumber}}, ::Dict{Base.UUID,Dict{Pkg.Types.VersionRange,Dict{String,Base.UUID}}}, ::Dict{Base.UUID,Dict{Pkg.Types.VersionRange,Dict{String,Pkg.Types.VersionSpec}}}, ::Dict{Base.UUID,String}, ::Dict{Base.UUID,Pkg.Types.VersionSpec}, ::Dict{Base.UUID,Pkg.Resolve.Fixed}, ::Bool) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Resolve/graphtype.jl:367
 [3] deps_graph(::Pkg.Types.Context, ::Dict{Base.UUID,String}, ::Dict{Base.UUID,Pkg.Types.VersionSpec}, ::Dict{Base.UUID,Pkg.Resolve.Fixed}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:449
 [4] resolve_versions!(::Pkg.Types.Context, ::Array{Pkg.Types.PackageSpec,1}) at /buildworker/worker/package_linux64/build/usr/share/julia/stdlib/v1.5/Pkg/src/Operations.jl:340

Here, Pkg said the possible versions for SIMDPirates were

├─possible versions are: [0.1.0-0.1.8, 0.2.0-0.2.3, 0.3.0-0.3.13] or uninstalled

the latest version listed was 0.3.13, even though 0.3.16 was the latest tagged version (PR to the general registry merged 5 hours before I filed this issue, and the test failure was 3 hours later, at 2 hours ago).
Tests passed on Julia 1.1 and 1.3.

Setting the versions of the dependencies to #master let tests pass, but I would prefer restricting deps to a tagged version.

If I did something wrong, please let me know.

Most helpful comment

Out of curiosity, how frequently does the Pkg server sync?

See https://github.com/JuliaPackaging/PkgServer.jl/blob/master/src/PkgServer.jl#L21-L25

All 9 comments

Seems like a problem with the registry Pkg Server serves? That it is outdated? cc @StefanKarpinski

@KristofferC How do you opt-out of the Pkg protocol/Pkg server? Is there an environment variable to set?

Yes, export JULIA_PKG_SERVER ="" to opt out.

Yes, export JULIA_PKG_SERVER ="" to opt out.

Alright let’s try that: https://github.com/chriselrod/LoopVectorization.jl/pull/58

It seems to work once I opt out of Pkg server: https://travis-ci.com/chriselrod/LoopVectorization.jl/jobs/290143300

Should be fixed.

@KristofferC Out of curiosity, how frequently does the Pkg server sync?

Should be in a constant loop, so as often as it can.

Out of curiosity, how frequently does the Pkg server sync?

See https://github.com/JuliaPackaging/PkgServer.jl/blob/master/src/PkgServer.jl#L21-L25

Was this page helpful?
0 / 5 - 0 ratings

Related issues

GregPlowman picture GregPlowman  Â·  3Comments

MaWo2 picture MaWo2  Â·  4Comments

dpsanders picture dpsanders  Â·  3Comments

KristofferC picture KristofferC  Â·  4Comments

cscherrer picture cscherrer  Â·  3Comments