commit with gpg.format ssh results in "cryptographic error"
- Vorherrschende Sprache
- Rust
- Sterne
- 22.5k
- Forks
- 773
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
**Describe the bug**
`git` is configured to sign commits with `ssh`.
The key pair length is 4096.
Commit fails with the error message in subject without any additional information.
**To Reproduce**
Nothing out of the ordinary. Just try to commit a change.
The relevant parts in `.gitconfig` :
```
[user]
signingkey = /home/razvan/.github/sign
[gpg]
format = ssh
[commit]
gpgsign = true
[tag]
gpgsign = true
```
**Expected behavior**
I should be able to commit changes.
**Context (please complete the following information):**
- OS: Fedora Linux 43 (Workstation Edition)
- GitUI Version: both `0.27.0` (dnf package) as well as `cargo build --release` from `main`
- Rust version: 1.86.0
**Additional context**
Excerpt from `gitui.log`:
```
❯ rg ERROR ~/.cache/gitui/gitui.log
1:12:29:57 [ERROR] theme error ["/home/razvan/.config/gitui/theme.ron"]: No such file or directory (os error 2)
50:12:30:07 [ERROR] commit error: sign error: Failed to spawn signing process: cryptographic error
```
I can also confirm that both `git commit` as well as `lazygit` work, so I don't believe it's a problem with my setup.
Beitragsleitfaden
Rechercherichtung
Beginne damit, einen signierten Commit in GitUI mit der gezeigten .gitconfig zu reproduzieren, und untersuche anschließend ~/.cache/gitui/gitui.log auf den Fehler bei der Signierung. Vergleiche den fehlschlagenden GitUI-Pfad mit erfolgreichen Ausführungen von git commit und lazygit; abgeschlossen ist die Untersuchung, wenn mit SSH signierte Commits in GitUI funktionieren und der kryptografische Fehler nützliche Informationen liefert, falls die Signierung weiterhin fehlschlägt.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- git, rust
- Bereich
- cli, security
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100