JuliaPackaging / BinaryBuilder.jl

Binary Dependency Builder for Julia
https://binarybuilder.org
Other
391 stars 99 forks source link

Git error: authentication required but no callback set #1287

Closed Octogonapus closed 1 year ago

Octogonapus commented 1 year ago

Using Julia v1.9.2 and the BinaryBuilder wizard v0.5.6, I encounter this error:

                        # Step 2a: Obtain the source code

Please enter a URL (git repository or compressed archive) containing the source code to build or `N` to stop:
> https://github.com/vusec/floatzone.git     

┌ Info: Cloning git repository
│   url = "https://github.com/vusec/floatzone.git"
└   repo_path = "/home/salmon/.julia/packages/BinaryBuilderBase/2X19x/deps/downloads/clones/floatzone.git-aabe1f19171e6b24b6d5b7d8eb9d5f26bf513678fbec2a3ef44750b65dda1e6f"
GitError(Code:EAUTH, Class:SSH, authentication required but no callback set)
Stacktrace:
  [1] macro expansion
    @ ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/LibGit2/src/error.jl:111 [inlined]
  [2] clone(repo_url::String, repo_path::String, clone_opts::LibGit2.CloneOptions)
    @ LibGit2 ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/LibGit2/src/repository.jl:459
  [3] cached_git_clone(url::String; hash_to_check::Nothing, downloads_dir::String, verbose::Bool, progressbar::Bool)
    @ BinaryBuilderBase ~/.julia/packages/BinaryBuilderBase/2X19x/src/Sources.jl:242
  [4] cached_git_clone
    @ ~/.julia/packages/BinaryBuilderBase/2X19x/src/Sources.jl:202 [inlined]
  [5] download_source(state::BinaryBuilder.Wizard.WizardState)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/wizard/obtain_source.jl:87
  [6] obtain_source(state::BinaryBuilder.Wizard.WizardState)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/wizard/obtain_source.jl:279
  [7] step2(state::BinaryBuilder.Wizard.WizardState)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/wizard/obtain_source.jl:379
  [8] run_wizard(state::Nothing)
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/Wizard.jl:101
  [9] run_wizard()
    @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/0CUml/src/Wizard.jl:87
 [10] top-level scope
    @ REPL[6]:1
 [11] eval
    @ ./boot.jl:370 [inlined]
 [12] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
    @ REPL ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:153
 [13] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
    @ REPL ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:249
 [14] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
    @ REPL ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:234
 [15] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
    @ REPL ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:379
 [16] run_repl(repl::REPL.AbstractREPL, consumer::Any)
    @ REPL ~/.julia/juliaup/julia-1.9.2+0.x64.linux.gnu/share/julia/stdlib/v1.9/REPL/src/REPL.jl:365
 [17] (::Base.var"#1017#1019"{Bool, Bool, Bool})(REPL::Module)
    @ Base ./client.jl:421
 [18] #invokelatest#2
    @ ./essentials.jl:816 [inlined]
 [19] invokelatest
    @ ./essentials.jl:813 [inlined]
 [20] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
    @ Base ./client.jl:405
 [21] exec_options(opts::Base.JLOptions)
    @ Base ./client.jl:322
 [22] _start()
    @ Base ./client.jl:522

I can clone that repo just fine in a terminal. I also have an SSH agent set up.