Skip to content

[Bug]: Unable to sign commits with GPG in dev container #1110

@apgrucza

Description

@apgrucza

Current Behavior (bug)

When Git is configured to sign commits with a GPG key, making a commit inside the dev container produced by devbox generate devcontainer fails with the following error:

error: cannot run gpg: No such file or directory
error: gpg failed to sign the data
fatal: failed to write commit object

Expected Behavior (fix)

gnupg2 should be installed in the container, as per the Sharing GPG Keys instructions.

Additional context

In VS Code, the Dev Containers: Show Container Log command shows:

...
[16707 ms] Start: Run in container: gpgconf --list-dir agent-socket
[16710 ms] 
[16710 ms] /bin/sh: 19: gpgconf: not found
[16710 ms] Exit code 127
[16710 ms] gpg-agent: No agent-socket found in container.
...

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions