Commit Graph

4 Commits

Author SHA1 Message Date
Miloslav Trmač 8dabf442db Remove obsolete build tag syntax
per (go fix ./...).

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2025-03-12 20:20:16 +01:00
Miloslav Trmač 462d1cad8f Terminate the GPG agent spawned by c/image/signature tests
.. so that we don't leave around long-term state.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-01-07 05:42:22 +01:00
Miloslav Trmač 1e7020d1d7 Run (gofmt -s -w)
Go 1.17 introduces a much more reasonable build constraint format,
and gofmt now fails without using it.

Sadly we still need the old format _as well_, to support <1.17 builds.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2021-08-21 05:29:39 +02:00
Miloslav Trmač f5768e7cbd Allow choosing between a gpgme and openpgp signature backend using a build tag
The default is gpgme; a containers_image_openpgp build tag can be used
to use openpgp instead.

openpgp does not currently support signing, and is based on mfojtik's
implementation (adding GPG home directory support, parsing of unarmored
keys, and fixing ImportKeysFromBytes semantics).

Also adds build documentation, including the new
containers_image_openpgp build tag, to README.md.

This does not yet hook this into Travis, because that needs a
corresponding skopeo build infrastructure and test update to make it
possible.  That is a separate commit (perhaps a separate PR)?

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2017-03-28 18:57:11 +02:00