* [ptxdist] [PATCH] ptxd_make_vcs_version: always use all Git tags
@ 2023-09-26 8:32 Roland Hieber
2023-09-26 10:13 ` Alexander Dahl
0 siblings, 1 reply; 2+ messages in thread
From: Roland Hieber @ 2023-09-26 8:32 UTC (permalink / raw)
To: ptxdist; +Cc: Steffen Trumtrar, Roland Hieber
The short-circuit results in a preference of signed tags over non-signed
tags. In BSPs where non-signed tags exist (e.g. DistroKit-2023.09.0)
that are newer than the latest signed tag (e.g. DistroKit-2019.12.0),
this will always lead to an unnecessarily old tag being used.
Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
Steffen, do you still know why you chose a plain "git describe" first?
scripts/lib/ptxd_make_vcs_version.sh | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/scripts/lib/ptxd_make_vcs_version.sh b/scripts/lib/ptxd_make_vcs_version.sh
index 69e486ab31a5..d59e1eba9872 100644
--- a/scripts/lib/ptxd_make_vcs_version.sh
+++ b/scripts/lib/ptxd_make_vcs_version.sh
@@ -7,8 +7,7 @@
#
ptxd_make_vcs_version() {
- PTXDIST_VCS_VERSION="$(git describe 2>/dev/null || \
- git describe --always --tags 2>/dev/null)"
+ PTXDIST_VCS_VERSION="$(git describe --always --tags 2>/dev/null)"
if [ -z "${PTXDIST_VCS_VERSION}" ]; then
PTXDIST_VCS_VERSION="unknown"
--
2.39.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ptxdist] [PATCH] ptxd_make_vcs_version: always use all Git tags
2023-09-26 8:32 [ptxdist] [PATCH] ptxd_make_vcs_version: always use all Git tags Roland Hieber
@ 2023-09-26 10:13 ` Alexander Dahl
0 siblings, 0 replies; 2+ messages in thread
From: Alexander Dahl @ 2023-09-26 10:13 UTC (permalink / raw)
To: Roland Hieber, ptxdist
Hello Roland,
Am Tue, Sep 26, 2023 at 10:32:05AM +0200 schrieb Roland Hieber:
> The short-circuit results in a preference of signed tags over non-signed
> tags. In BSPs where non-signed tags exist (e.g. DistroKit-2023.09.0)
> that are newer than the latest signed tag (e.g. DistroKit-2019.12.0),
> this will always lead to an unnecessarily old tag being used.
Maybe this thread from 2018 can help (been there, tried that):
https://lore.ptxdist.org/ptxdist/20180907100105.nleg2qmttyahcmzm@pengutronix.de/
Greets
Alex
>
> Cc: Steffen Trumtrar <s.trumtrar@pengutronix.de>
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> ---
> Steffen, do you still know why you chose a plain "git describe" first?
>
>
> scripts/lib/ptxd_make_vcs_version.sh | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/scripts/lib/ptxd_make_vcs_version.sh b/scripts/lib/ptxd_make_vcs_version.sh
> index 69e486ab31a5..d59e1eba9872 100644
> --- a/scripts/lib/ptxd_make_vcs_version.sh
> +++ b/scripts/lib/ptxd_make_vcs_version.sh
> @@ -7,8 +7,7 @@
> #
>
> ptxd_make_vcs_version() {
> - PTXDIST_VCS_VERSION="$(git describe 2>/dev/null || \
> - git describe --always --tags 2>/dev/null)"
> + PTXDIST_VCS_VERSION="$(git describe --always --tags 2>/dev/null)"
>
> if [ -z "${PTXDIST_VCS_VERSION}" ]; then
> PTXDIST_VCS_VERSION="unknown"
> --
> 2.39.2
>
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-26 10:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-26 8:32 [ptxdist] [PATCH] ptxd_make_vcs_version: always use all Git tags Roland Hieber
2023-09-26 10:13 ` Alexander Dahl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox