Skip to content

--deploy option doesn't work in the presence of insteadof gitconfig #1405

@Keno

Description

@Keno

I had an insteadOf gitconfig that rewrites https into ssh, which caused a --deploy-jll argument to fail with:

Successfully obtained GitHub authorization token!
This token will be used for the rest of this BB session.
You will have to re-authenticate for any future session.
However, if you wish to bypass this step, you may create a
personal access token at https://github.com/settings/tokens
 and add the token to the
~/.julia/config/startup.jl file as:

    ENV["GITHUB_TOKEN"] = <token>
This token is sensitive, so only do this in a computing environment you trust.

[ Info: Cloning wrapper code repo from https://github.com/KenoAIStaging/ClangExtract_jll into /home/keno/.julia/dev/ClangExtract_jll
ERROR: LoadError: GitError(Code:EAUTH, Class:Callback, The explicitly provided credential is incompatible with the requested authentication methods.)
Stacktrace:
 [1] macro expansion
   @ ~/.julia/juliaup/julia-1.7.3+0.x64.linux.gnu/share/julia/stdlib/v1.7/LibGit2/src/error.jl:110 [inlined]
 [2] clone(repo_url::String, repo_path::String, clone_opts::LibGit2.CloneOptions)
   @ LibGit2 ~/.julia/juliaup/julia-1.7.3+0.x64.linux.gnu/share/julia/stdlib/v1.7/LibGit2/src/repository.jl:459
 [3] clone(repo_url::String, repo_path::String; branch::String, isbare::Bool, remote_cb::Ptr{Nothing}, credentials::LibGit2.UserPasswordCredential, callbacks::Dict{Symbol, Tuple{Ptr{Nothing}, Any}})
   @ LibGit2 ~/.julia/juliaup/julia-1.7.3+0.x64.linux.gnu/share/julia/stdlib/v1.7/LibGit2/src/LibGit2.jl:583
 [4] #34
   @ ~/.julia/packages/BinaryBuilder/3eUfg/src/AutoBuild.jl:1132 [inlined]
 [5] with_gitcreds(f::BinaryBuilder.var"#34#36"{String, String}, username::String, password::String)
   @ BinaryBuilder.Wizard ~/.julia/packages/BinaryBuilder/3eUfg/src/wizard/utils.jl:274
 [6] init_jll_package(code_dir::String, deploy_repo::SubString{String}; gh_auth::GitHub.OAuth2)
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/3eUfg/src/AutoBuild.jl:1131
 [7] init_jll_package(code_dir::String, deploy_repo::SubString{String})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/3eUfg/src/AutoBuild.jl:1104
 [8] build_tarballs(ARGS::Any, src_name::Any, src_version::Any, sources::Any, script::Any, platforms::Any, products::Any, dependencies::Any; julia_compat::String, validate_name::Bool, compression_format::String, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
   @ BinaryBuilder ~/.julia/packages/BinaryBuilder/3eUfg/src/AutoBuild.jl:324
 [9] top-level scope
   @ ~/Yggdrasil/C/ClangExtract/build_tarballs.jl:109
in expression starting at /home/keno/Yggdrasil/C/ClangExtract/build_tarballs.jl:109

I think we may want to either warn or ignore the global settings here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions