Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 2004564 - age does not know its own version
Summary: age does not know its own version
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: age
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Robert-André Mauchin 🐧
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-09-15 14:47 UTC by Ben Beasley
Modified: 2021-09-24 20:37 UTC (History)
1 user (show)

Fixed In Version: age-1.0.0-2.fc36 age-1.0.0-2.fc35 age-1.0.0-2.fc34 age-1.0.0-2.fc33
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-09-16 22:15:37 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Ben Beasley 2021-09-15 14:47:44 UTC
Description of problem:

The output of “age --version” is “(unknown)”.


Version-Release number of selected component (if applicable): 1.0.0.1


How reproducible:


Steps to Reproduce:
1. age --version

Actual results:

(unknown)

Expected results:

1.0.0

(or similar)

Additional info:

In cmd/age-keygen/keygen.go and cmg/age/age.go:

> // Version can be set at link time to override debug.BuildInfo.Main.Version,
> // which is "(devel)" when building from within the module. See
> // golang.org/issue/29814 and golang.org/issue/29228.
> var Version string

It’s not immediately obvious to me how to provide the version to the build. It seems like making a git repo in the source directory with a commit and a tag for the version would likely do the trick, but there may be a better option that’s obvious to someone steeped in golang practices—which doesn’t describe me.

Comment 1 Ben Beasley 2021-09-15 14:48:34 UTC
> Version-Release number of selected component (if applicable): 1.0.0.1

1.0.0-1, that is.

Comment 2 Fedora Update System 2021-09-16 22:14:27 UTC
FEDORA-2021-276c031f06 has been submitted as an update to Fedora 36. https://bodhi.fedoraproject.org/updates/FEDORA-2021-276c031f06

Comment 3 Fedora Update System 2021-09-16 22:15:37 UTC
FEDORA-2021-276c031f06 has been pushed to the Fedora 36 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 4 Fedora Update System 2021-09-16 22:25:30 UTC
FEDORA-2021-a9c751ad32 has been submitted as an update to Fedora 33. https://bodhi.fedoraproject.org/updates/FEDORA-2021-a9c751ad32

Comment 5 Fedora Update System 2021-09-16 22:25:44 UTC
FEDORA-2021-e0cbd06845 has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-e0cbd06845

Comment 6 Fedora Update System 2021-09-16 22:25:55 UTC
FEDORA-2021-c439bfba00 has been submitted as an update to Fedora 34. https://bodhi.fedoraproject.org/updates/FEDORA-2021-c439bfba00

Comment 7 Fedora Update System 2021-09-17 15:19:46 UTC
FEDORA-2021-c439bfba00 has been pushed to the Fedora 34 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-c439bfba00`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-c439bfba00

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 8 Fedora Update System 2021-09-17 15:25:20 UTC
FEDORA-2021-a9c751ad32 has been pushed to the Fedora 33 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-a9c751ad32`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-a9c751ad32

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2021-09-17 19:41:14 UTC
FEDORA-2021-e0cbd06845 has been pushed to the Fedora 35 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --advisory=FEDORA-2021-e0cbd06845`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2021-e0cbd06845

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2021-09-24 20:26:44 UTC
FEDORA-2021-e0cbd06845 has been pushed to the Fedora 35 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 11 Fedora Update System 2021-09-24 20:31:58 UTC
FEDORA-2021-c439bfba00 has been pushed to the Fedora 34 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2021-09-24 20:37:58 UTC
FEDORA-2021-a9c751ad32 has been pushed to the Fedora 33 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.