• Icon: Bug Bug
    • Resolution: Done-Errata
    • Icon: Normal Normal
    • None
    • 4.17, 4.18
    • oc-mirror
    • Low
    • None
    • CLID Sprint 268, CLID Sprint 269
    • 2
    • False
    • Hide

      None

      Show
      None
    • Hide
      * Previously, the output of the `oc-mirror --v2 version` command was missing the version information. With this release, the output from the command now correctly shows the version number. (link:https://issues.redhat.com/browse/OCPBUGS-53388[*OCPBUGS-53388*])
      Show
      * Previously, the output of the `oc-mirror --v2 version` command was missing the version information. With this release, the output from the command now correctly shows the version number. (link: https://issues.redhat.com/browse/OCPBUGS-53388 [* OCPBUGS-53388 *])
    • Bug Fix
    • Done

      This is a clone of issue OCPBUGS-52960. The following is the description of the original issue:

      Description of problem:

      While listing the version for oc-mirror in version 2 the data fields gitCommit, gitTreeState and buildDate are empty. 
      
      oc-mirror version --v2
      
      2025/03/10 12:16:47  [INFO]   : 👋 Hello, welcome to oc-mirror
      2025/03/10 12:16:47  [INFO]   : ⚙️  setting up the environment for you...
      WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.
      Client Version: version.Info{Major:"", Minor:"", GitVersion:"v0.0.0-unknown", GitCommit:"", GitTreeState:"", BuildDate:"", GoVersion:"go1.22.9 (Red Hat 1.22.9-1.module+el8.10.0+22500+aee717ef) X:strictfipsruntime", Compiler:"gc", Platform:"linux/amd64"}

       

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

          

      How reproducible:

          oc-mirror version --v2

      Steps to Reproduce:

          1.
          2.
          3.
          

      Actual results:

          The data fields should have consistent values compared to oc-mirror version --v1

      Expected results:

          Values for gitCommit, gitTreeState and buildDate

      Additional info:

          oc-mirror version used 4.18.0-202502260503

              rdossant Rafael Fonseca dos Santos
              openshift-crt-jira-prow OpenShift Prow Bot
              Nidan Gavali Nidan Gavali
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: