Registrator.jl icon indicating copy to clipboard operation
Registrator.jl copied to clipboard

Registrator doesn't work on Julia 1.0.3

Open rofinn opened this issue 6 years ago • 3 comments
trafficstars

The register code references Pkg.Types.Project which doesn't exist for the release of Pkg included in Julia 1.0.3

julia> using Pkg, Registrator
[ Info: Precompiling Registrator [4418983a-e44d-11e8-3aec-9789530b3b3e]
ERROR: LoadError: LoadError: UndefVarError: Project not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at none:0
 [3] include at ./boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1044
 [5] include at ./sysimg.jl:29 [inlined]
 [6] include(::String) at /Users/rory/.playground/share/testpkg/depot/packages/Registrator/FivKN/src/Registrator.jl:1
 [7] top-level scope at none:0
 [8] include at ./boot.jl:317 [inlined]
 [9] include_relative(::Module, ::String) at ./loading.jl:1044
 [10] include(::Module, ::String) at ./sysimg.jl:29
 [11] top-level scope at none:2
 [12] eval at ./boot.jl:319 [inlined]
 [13] eval(::Expr) at ./client.jl:393
 [14] top-level scope at ./none:3
in expression starting at /Users/rory/.playground/share/testpkg/depot/packages/Registrator/FivKN/src/register.jl:157
in expression starting at /Users/rory/.playground/share/testpkg/depot/packages/Registrator/FivKN/src/Registrator.jl:13
ERROR: Failed to precompile Registrator [4418983a-e44d-11e8-3aec-9789530b3b3e] to /Users/rory/.playground/share/testpkg/depot/compiled/v1.0/Registrator/Obz5J.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853

rofinn avatar Apr 08 '19 22:04 rofinn

Additional info: Project was introduced at Pkg 1.1.0

iamed2 avatar Apr 08 '19 22:04 iamed2

Correct. Supporting multiple versions in what is intended to be server-side software seems like an unnecessary complication.

StefanKarpinski avatar Apr 09 '19 03:04 StefanKarpinski

What about people who need to use the register function directly? Or organizations where it takes time and effort to upgrade the Julia version they've deployed?

iamed2 avatar Apr 09 '19 03:04 iamed2