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
Adding a git repository using opam remote add
asks for a gpg signature
#3113
Comments
Indeed, I so how that would be quite annoying!
Yes. Note that
That would be extremely useful! But I couldn't find that flag in the manpages ? |
Ah yes, the Very Verbose option would have made debugging easier :D I found the --local flag and mistakenly assumed it would work everywhere, but apparently it's only valid as a flag under git config. |
@anthonyclays Do you stille have the problem with opam 2.0? From previous comment, it seems that you shouldn't. |
Everything seems to work as it should now, yes. |
By running
strace -f -e trace=execve opam remote add test-name https://github.com/ocaml/opam-repository.git
I found that opam runs, in order:git init
git remote add origin https://github.com/ocaml/opam-repository.git
git commit --allow-empty -m opam-git-init
(with GIT_AUTHOR_NAME=Opam and GIT_AUTHOR_EMAIL=opam@ocaml.org)On my machine, git tries to gpg-sign commits automatically. Getting a pop-up to cryptographically sign unspecified data when you just wanted to add a repository seems suspicious and unnecessary, but I couldn't find where exactly these commands are called in opam.
A possible workaround would be to use git's
--local
flag everywhere, which ignores all configuration files outside of the current repository.I'm using opam 1.2.2:
The text was updated successfully, but these errors were encountered: