Trying to upload 'ntfy' returned a weird error:
jas@frallan:~/dpkg/ntfy$ git-debpush
git-debpush: checking state at git@salsa.debian.org:go-team/packages/ntfy.git
-e: fel: v2.11.0-2 är inte en giltig version
jas@frallan:~/dpkg/ntfy$
(I suppose the English text would be something like: '-e: error:
v2.11.0-2 is not a valid version')
For some reason this repository had some debian/v* tags, and removing
them (locally) and then running git-debpush makes everything work:
jas@frallan:~/dpkg/ntfy$ git tag -d debian/v2.11.0-1
Tog bort tagg ”debian/v2.11.0-1” (var 0e3c87e7)
jas@frallan:~/dpkg/ntfy$ git tag -d debian/v2.11.0-2
Tog bort tagg ”debian/v2.11.0-2” (var 37ad0d0e)
jas@frallan:~/dpkg/ntfy$ git-debpush
git-debpush: checking state at git@salsa.debian.org:go-team/packages/ntfy.git
git-debpush: could not determine the git branch layout
git-debpush: please supply a --quilt= argument
jas@frallan:~/dpkg/ntfy$ git-debpush --quilt=gbp
git-debpush: checking state at git@salsa.debian.org:go-team/packages/ntfy.git
git-debpush: making signed tag debian/2.11.0-3
git-debpush: pushing to git remote origin
Räknar upp objekt: 13, klart.
Räknar objekt: 100% (13/13), klart.
Deltakomprimering använder upp till 24 trådar
Komprimerar objekt: 100% (9/9), klart.
Skriver objekt: 100% (9/9), 3,35 KiB | 3,35 MiB/s, klart.
Totalt 9 (delta 5), återanvände 0 (delta 0), paket-återanvända 0 (från 0)
To salsa.debian.org:go-team/packages/ntfy.git
3aaee3de..d4adeafa debian/latest -> debian/latest
* [new tag] debian/2.11.0-3 -> debian/2.11.0-3
jas@frallan:~/dpkg/ntfy$
For reference, at this point the local checkout had the following
versions:
jas@frallan:~/dpkg/ntfy$ git log -1 debian/latest
commit d4adeafac767865db97742aa17d19d1ce19c1a9a (HEAD -> debian/latest, tag: debian/2.11.0-3, origin/debian/latest, origin/HEAD)
Author: Simon Josefsson <simon@josefsson.org>
Date: Tue Dec 30 19:29:47 2025 +0100
Update changelog for 2.11.0-3 release
jas@frallan:~/dpkg/ntfy$ git log -1 upstream/latest
commit d11b1007ef5cf8546adee9db3fb8ebf61ce9b17a (tag: upstream/v2.11.0, tag: upstream/2.11.0, origin/upstream/latest, jas/upstream/latest, upstream/latest)
Author: binwiederhier <philipp.heckel@gmail.com>
Date: Mon May 13 16:11:29 2024 -0400
Bump
jas@frallan:~/dpkg/ntfy$
I think the error message should have been something else then just
'-e'. Otto's commit related to this suggests he discovered this too,
but I'm not sure if there is a bug report about it.
commit 40953a5a75ef61650f0f2eaa1bbe7fa4c29ab907
Author: Otto Kekäläinen <otto@debian.org>
Date: Sun Aug 17 18:12:40 2025 -0700
Remove 'v' prefix from Debian tags
Don't add an extra 'v' to tags as it violates DEP-14 guidance and breaks
tools like git-buildpackage and git-debpush from reasoning correctly about
what the tags are.
In practice this will make:
- debian/v2.11.0-2 -> debian/2.11.0-2
- upstream/2.11.0 -> upstream/2.11.0
Only the upstream tag can or should have 'v' in it, but it is currently
not defined at all in gbp.conf as the field upstream-vcs-tag is missing.
/Simon