Skip to content

Commit

Permalink
Allow OfficialBuild and Build coexist because CI tests use local tarb…
Browse files Browse the repository at this point in the history
…alled binaries having OfficialBuild set;
  • Loading branch information
ycliuhw committed Mar 28, 2022
1 parent b11218a commit 83dc29a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions version/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,8 @@ var GitTreeState string = TreeStateDirty

func init() {
defer func() {
if Current.Build != 0 && OfficialBuild != 0 {
panic(fmt.Sprintf("unexpected Build %d and OfficialBuild %d", Current.Build, OfficialBuild))
}
if Current.Build == 0 {
// We set the Build to OfficialBuild if no build number provided in the FORCE-VERSION file.
Current.Build = OfficialBuild
}
}()
Expand Down

0 comments on commit 83dc29a

Please sign in to comment.