File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change 2424 provided_version = version
2525 new_version = provided_version || computed_version
2626
27- # Warn if provided version differs from computed version
27+ # Fail if provided version differs from computed version
2828 if provided_version && provided_version != computed_version
29- warning_message = <<~WARNING
30- ⚠️ Version mismatch: The explicitly-provided version was '#{ provided_version } ' while new computed version would have been '#{ computed_version } '.
31- If this is unexpected, you might want to investigate the discrepency.
32- Continuing with the explicitly-provided verison '#{ provided_version } '.
33- WARNING
34- UI . important ( warning_message )
35- buildkite_annotate ( style : 'warning' , context : 'code-freeze-version-mismatch' , message : warning_message ) if is_ci
29+ error_message = <<~ERROR
30+ ❌ Version mismatch detected!
31+
32+ The explicitly-provided version from the release tool is '#{ provided_version } ' but the computed version from the codebase is '#{ computed_version } '.
33+
34+ This mismatch must be resolved before proceeding with the code freeze. Please investigate and ensure the versions are aligned.
35+ ERROR
36+ buildkite_annotate ( style : 'error' , context : 'code-freeze-version-mismatch' , message : error_message ) if is_ci
37+ UI . user_error! ( error_message )
3638 end
3739
3840 release_branch_name = compute_release_branch_name ( options : { version : version , skip_confirm : skip_confirm } , version : new_version )
You can’t perform that action at this time.
0 commit comments