Uploaded image for project: 'OpenShift Bugs'
  1. OpenShift Bugs
  2. OCPBUGS-52960

Missing version values for oc-mirror --v2

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Normal Normal
    • None
    • 4.17, 4.18
    • oc-mirror
    • Low
    • None
    • CLID Sprint 268
    • 1
    • False
    • Hide

      None

      Show
      None
    • N/A
    • Release Note Not Required
    • In Progress

      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
              rhn-support-shishind Shivam shinde
              Nidan Gavali Nidan Gavali
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated: