Skip to content

Commit

Permalink
chore: add build flag check on run to ensure it is included
Browse files Browse the repository at this point in the history
  • Loading branch information
DewitteRuben committed Sep 23, 2021
1 parent 4821519 commit 013d245
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ func main() {
log.Fatal().Stack().Err(err).Msg("Failed to get CLI args")
}

if system.BuildArch == "" {
fmt.Println("The 'reagent/system.BuildArch' build flag was not included during the build of this version.")
os.Exit(1)
}

if cliArgs.ConfigFileLocation == "" {
if cliArgs.Version {
fmt.Println(system.GetVersion())
Expand Down
2 changes: 1 addition & 1 deletion src/system/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.6.3.0
0.6.3.1

0 comments on commit 013d245

Please sign in to comment.