You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OCPBUGS-60903: v2/version: add OCP release info support
This change makes it possible for `oc` to inject the current OCP release
version information into the `oc-mirror` binary so that we can report a
better version output other than just a commit hash.
returnfmt.Errorf("could not determine binary version: %w", err)
125
+
}
126
+
iflen(reportedVersion) !=0 {
127
+
versionInfo.ReleaseVersion=reportedVersion
128
+
}
90
129
versionInfo.ClientVersion=&clientVersion
91
130
92
131
switcho.Output {
@@ -97,6 +136,9 @@ func (o *VersionOptions) Run() error {
97
136
fmt.Fprintf(os.Stderr, "WARNING: This version information is deprecated and will be replaced with the output from --short. Use --output=yaml|json to get the full version.\n")
0 commit comments