Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git error: authentication required but no callback set #1287

Closed
Octogonapus opened this issue Aug 4, 2023 · 0 comments · Fixed by JuliaPackaging/BinaryBuilderBase.jl#319
Closed

Comments

@Octogonapus
Copy link

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.

@Keno Keno self-assigned this Sep 13, 2023
Keno added a commit to JuliaPackaging/BinaryBuilderBase.jl that referenced this issue Sep 13, 2023
Use the supported callbacks interface rather than trying to re-do
the low level interface. As reported in JuliaPackaging/BinaryBuilder.jl#1287,
we currently try to error when attempting to clone a repository
over ssh (either directly or via the insteadOf git setting),
because we accidentally override the base callback to provide
ssh credentials.

Fixes JuliaPackaging/BinaryBuilder.jl#1287
Keno added a commit to JuliaPackaging/BinaryBuilderBase.jl that referenced this issue Sep 13, 2023
Use the supported callbacks interface rather than trying to re-do
the low level interface. As reported in JuliaPackaging/BinaryBuilder.jl#1287,
we currently try to error when attempting to clone a repository
over ssh (either directly or via the insteadOf git setting),
because we accidentally override the base callback to provide
ssh credentials.

Fixes JuliaPackaging/BinaryBuilder.jl#1287
Keno added a commit to JuliaPackaging/BinaryBuilderBase.jl that referenced this issue Sep 20, 2023
Use the supported callbacks interface rather than trying to re-do
the low level interface. As reported in JuliaPackaging/BinaryBuilder.jl#1287,
we currently try to error when attempting to clone a repository
over ssh (either directly or via the insteadOf git setting),
because we accidentally override the base callback to provide
ssh credentials.

Fixes JuliaPackaging/BinaryBuilder.jl#1287
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants