Skip to content

Commit

Permalink
change local build error message to be mote explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZelvaMan committed Feb 20, 2024
1 parent 9a0bd48 commit b135f4c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/version.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ var info BuildInformation = BuildInformation{

func ParseBuildInformation(versionFileText string) error {
if strings.HasPrefix(versionFileText, "LOCAL") {
common.LogWarn("Running locally build Version, be careful")
common.LogWarn("THIS IS LOCAL BUILD")
common.LogWarn("USE ONLY FOR TESTING!!!!")
return nil
}

Expand Down Expand Up @@ -61,3 +62,7 @@ func GetVersion() string {
func GetBuildInfo() *BuildInformation {
return &info
}

func IsLocalBuild() bool {
return info.Version == localVersion
}

0 comments on commit b135f4c

Please sign in to comment.