FS#74361 - [tekton-cli] tektoncd-cli doesn't set version

Attached to Project: Community Packages
Opened by Chmouel B (chmouel) - Tuesday, 05 April 2022, 15:59 GMT
Last edited by Robin Candau (Antiz) - Tuesday, 05 September 2023, 00:20 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Robin Candau (Antiz)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:


Additional info:
* package version(s)0.22.0
* config and/or log files etc.
* link to upstream bug report, if any

Steps to reproduce:

tkn version output dev

The way to fix it is to set the pkgver via the ldflags i.e:

go build -ldflags="-linkmode=external" -X "github.com/tektoncd/cli/pkg/cmd/version.clientVersion=${pkgver}" .

(as done upstream https://github.com/tektoncd/cli/blob/main/Makefile#L16)
This task depends upon

Closed by  Robin Candau (Antiz)
Tuesday, 05 September 2023, 00:20 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in 0.31.2-2: https://gitlab.archlinux.org/archlinux/p ackaging/packages/tekton-cli/-/commit/c1 effd373eff300e77293abb4f0d02103021f4b4

Loading...