[Bug 281716] sysutils/loki: Output version number on `loki --version`

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Sep 2024 16:59:48 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281716

            Bug ID: 281716
           Summary: sysutils/loki: Output version number on `loki
                    --version`
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: ports-bugs@FreeBSD.org
          Reporter: grembo@FreeBSD.org
                CC: freebsd@funzi.org
                CC: freebsd@funzi.org
             Flags: maintainer-feedback?(freebsd@funzi.org)
 Attachment #253821 maintainer-approval?(freebsd@funzi.org)
             Flags:
             Flags: maintainer-feedback?(freebsd@funzi.org)

Created attachment 253821
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=253821&action=edit
Patch to add version information to sysutils/loki

When running `loki --version`, no version is shown:

    loki, version  (branch: , revision: unknown)
      build user:       
      build date:       
      go version:       go1.21.13
      platform:         freebsd/amd64
      tags:             unknown

The attached patch changes this (inspired by how other go ports
like node_exporter handle the situation):

    loki, version 2.9.2 (branch: HEAD, revision: 9)
      build user:       root
      build date:       2024-09-25T16:51:36Z
      go version:       go1.21.13
      platform:         freebsd/amd64
      tags:             unknown

The patch also moves SUB_LIST around to pacify portclippy.

-- 
You are receiving this mail because:
You are the assignee for the bug.