Skip to content

Commit dbf3bbe

Browse files
committed
add early return, quiet todo
1 parent 2fb235c commit dbf3bbe

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

cli/app.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ const (
1919
aliasRobotFlag = "robot"
2020
partFlag = "part"
2121

22-
// quiet any warnings.
22+
// TODO: RSDK-6683
2323
quietFlag = "quiet"
2424

2525
logsFlagErrors = "errors"

cli/client.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,12 @@ func CheckUpdateAction(c *cli.Context) error {
427427
}
428428

429429
dateCompiledRaw := rconfig.DateCompiled
430+
431+
// `go build` will not set the compilation flags needed for this check
432+
if dateCompiledRaw == "" {
433+
return nil
434+
}
435+
430436
dateCompiled, err := time.Parse("2006-01-02", dateCompiledRaw)
431437
if err != nil {
432438
warningf(c.App.ErrWriter, "CLI Update Check: failed to parse compilation date: %w", err)

0 commit comments

Comments
 (0)