You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I didn't manage to reproduce your error when testing on Julia 1.10.2 or 1.7.3 also on Ubuntu 22.02.4 LTS. It looks like it might have something to do with Pkg and its git interface. Can you install other Julia packages via git without issues? E.g. Pkg.add(url="https://github.com/JuliaPlots/Plots.jl.git", rev="v1.40.2")
I was trying to install this package using
Pkg.add(url="https://github.com/cescalara/PartonDensity.jl.git")
but it is showing an error,ERROR: ArgumentError: invalid value for Enum Code: -30848 Stacktrace: [1] enum_argument_error(typename::Symbol, x::Int32) @ Base.Enums ./Enums.jl:93 [2] Code @ LibGit2.Error ./Enums.jl:211 [inlined] [3] LibGit2.Error.GitError(err_code::Int32) @ LibGit2.Error /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:100 [4] macro expansion @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:112 [inlined] [5] clone(repo_url::SubString{String}, repo_path::String, clone_opts::LibGit2.CloneOptions) @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/repository.jl:459 [6] clone(repo_url::SubString{…}, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{…}, credentials::LibGit2.CachedCredentials, callbacks::Dict{…}) @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:585 [7] clone @ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:558 [inlined] [8] clone(io::Base.TTY, url::String, source_path::String; header::Nothing, credentials::Nothing, kwargs::@Kwargs{…}) @ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:121 [9] clone @ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:88 [inlined] [10] #ensure_clone#2 @ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:74 [inlined] [11] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec) @ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:782 [12] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:852 [13] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@Kwargs{…}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:258 [14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@Kwargs{}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:159 [15] add(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:148 [16] add(pkgs::Vector{Pkg.Types.PackageSpec}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined] [17] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@Kwargs{}) @ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:176 [18] top-level scope @ REPL[3]:1 Some type information was truncated. Use
show(err)` to see complete types.julia> Pkg.add(url="https://github.com/cescalara/PartonDensity.jl.git", rev="v0.2.0")
Cloning git-repo
https://github.com/cescalara/PartonDensity.jl.git
ERROR: ArgumentError: invalid value for Enum Code: -30848
Stacktrace:
[1] enum_argument_error(typename::Symbol, x::Int32)
@ Base.Enums ./Enums.jl:93
[2] Code
@ LibGit2.Error ./Enums.jl:211 [inlined]
[3] LibGit2.Error.GitError(err_code::Int32)
@ LibGit2.Error /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:100
[4] macro expansion
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/error.jl:112 [inlined]
[5] clone(repo_url::SubString{String}, repo_path::String, clone_opts::LibGit2.CloneOptions)
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/repository.jl:459
[6] clone(repo_url::SubString{…}, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{…}, credentials::LibGit2.CachedCredentials, callbacks::Dict{…})
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:585
[7] clone
@ LibGit2 /opt/julia-1.10.0/share/julia/stdlib/v1.10/LibGit2/src/LibGit2.jl:558 [inlined]
[8] clone(io::Base.TTY, url::String, source_path::String; header::Nothing, credentials::Nothing, kwargs::@kwargs{…})
@ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:121
[9] clone
@ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:88 [inlined]
[10] #ensure_clone#2
@ Pkg.GitTools /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/GitTools.jl:74 [inlined]
[11] handle_repo_add!(ctx::Pkg.Types.Context, pkg::Pkg.Types.PackageSpec)
@ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:782
[12] handle_repos_add!(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.Types /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/Types.jl:852
[13] add(ctx::Pkg.Types.Context, pkgs::Vector{…}; preserve::Pkg.Types.PreserveLevel, platform::Base.BinaryPlatforms.Platform, kwargs::@kwargs{…})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:258
[14] add(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::@kwargs{})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:159
[15] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:148
[16] add(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:146 [inlined]
[17] add(; name::Nothing, uuid::Nothing, version::Nothing, url::String, rev::String, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::@kwargs{})
@ Pkg.API /opt/julia-1.10.0/share/julia/stdlib/v1.10/Pkg/src/API.jl:176
[18] top-level scope
@ REPL[4]:1
Some type information was truncated. Use
show(err)
to see complete types.`
My system is: Ubuntu 22.04.4 LTS
Julia version: 1.10.0
Any help will be appreciated
The text was updated successfully, but these errors were encountered: