Skip to content

tests/gpg directory is not distributed in the tarball

When running the test suite from the tarball I get this:

[   42s]
[   42s]  Start gpg-agent, which is required by GnuPG v2
[   42s]
[   42s] @@ -47,9 +49,9 @@
[   42s]    $ touch b
[   42s]    $ git add b
[   42s]    $ git commit -m "message" -Shgtest
[   42s] -  [signed *] message (glob)
[   42s] -   1 file changed, 0 insertions(+), 0 deletions(-)
[   42s] -   create mode 100644 b
[   42s] +  error: gpg failed to sign the data
[   42s] +  fatal: failed to write commit object
[   42s] +  [128]
[   42s]    $ cd ..
[   42s]
[   42s]  Hg clone it
[   42s] @@ -58,18 +60,16 @@
[   42s]    importing git objects into hg
[   42s]    updating to branch default (no-hg57 !)
[   42s]    updating to bookmark signed (hg57 !)
[   42s] -  2 files updated, 0 files merged, 0 files removed, 0 files unresolved
[   42s] +  1 files updated, 0 files merged, 0 files removed, 0 files unresolved
[   42s]
[   42s]    $ cd hgrepo
[   42s]    $ hg push ../gitrepo2 -B signed
[   42s]    pushing to ../gitrepo2
[   42s]    searching for changes
[   42s] -  adding objects
[   42s] -  added 1 commits with 1 trees and 0 blobs
[   42s]    $ cd ..
[   42s]
[   42s]  Verify the commit
[   42s]
[   42s]    $ cd gitrepo2
[   42s]    $ git show --show-signature signed | grep "Good signature from"
[   42s] -  gpg: Good signature from "hgtest" [ultimate]
[   42s] +  [1]
[   42s]
[   42s] ERROR: test-git-gpg.t output changed
[   42s] !# Killing daemon process 2305
[   42s] # Ret was: 0 (test-git-gpg.t)

which is obviously all caused by tarball not containing tests/gpg directory:

$ tar tvf hg-git-0.10.3.tar.gz |grep gpg
-rw-rw-r-- dan/dan        1776 2021-11-16 16:54 hg-git-0.10.3/tests/test-git-gpg.t
$

Either the appropriate line in MANIFEST.in should include also *.gpg files, or both tests/gpg/ and tests/testlib/ subdirectories should be included.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information