Skip to content

Commit

Permalink
BUGFIX - Add missing triggers for lint workflow + fix for fatalf logg…
Browse files Browse the repository at this point in the history
…ing of failed compileTime parse (#62)

* Add missing triggers for lint workflow

* fix log fatal message for parsing date
  • Loading branch information
spitzzz authored May 16, 2022
1 parent d55ef36 commit 1de6609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Lint

on: [push]
on:
push: { branches: [main] }
pull_request: { branches: [main] }

jobs:
lint:
Expand Down
3 changes: 1 addition & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"log"
"os"
"time"
"fmt"

"github.com/urfave/cli/v2"

Expand All @@ -19,7 +18,7 @@ var date = "2006-01-02T15:04:05Z"
func main() {
compileTime, err := time.Parse(time.RFC3339, date)
if err != nil {
log.Fatal(fmt.Sprintf("Could not parse compilation date: %v", err))
log.Fatalf("Could not parse compilation date: %v", err)
}
app := &cli.App{
Name: "spacectl",
Expand Down

0 comments on commit 1de6609

Please sign in to comment.