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

opm alpha render-template semver hangs when no parameter is sent

XMLWordPrintable

    • Quality / Stability / Reliability
    • False
    • Hide

      None

      Show
      None
    • None
    • Low
    • No
    • None
    • Rejected
    • OPECO 241
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Description of problem:
      When we run opm alpha render-template semver without any parameter, it hangs. The expected result is to return the help message or at least return an error.

      ./opm version                                                                                                                                       
      Version: version.Version{OpmVersion:"v1.28.0-11-ga71ca092", GitCommit:"a71ca092", BuildDate:"2023-08-02T20:46:43Z", GoOs:"linux", GoArch:"amd64"}
      ./opm alpha render-template semver
      

      If an invalid file is sent, it's returned the error message properly

      ./opm alpha render-template semver test
      ./opm alpha render-template semver file
      Error: open file: no such file or directory
      Usage:
        opm alpha render-template semver [FILE] [flags]
      
      Flags:
        -h, --help            help for semver
        -o, --output string   Output format (json|yaml|mermaid) (default "json")
      
      Global Flags:
            --skip-tls-verify   skip TLS certificate verification for container image registries while pulling bundles
            --use-http          use plain HTTP for container image registries while pulling bundles
      
      
      

              theishshah Ish Shah (Inactive)
              bandrade@redhat.com bruno andrade
              None
              None
              bruno andrade bruno andrade
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: