From 35ec5a1ee8b60742e34d5ca5b8ece86754805e63 Mon Sep 17 00:00:00 2001 From: jmank88 Date: Thu, 18 May 2023 08:13:55 -0500 Subject: [PATCH 1/2] .github/workflows: color golangci-lint xml with bat --- .github/workflows/ci-core.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-core.yml b/.github/workflows/ci-core.yml index 9363d50121c..43f36053f6c 100644 --- a/.github/workflows/ci-core.yml +++ b/.github/workflows/ci-core.yml @@ -87,9 +87,15 @@ jobs: only-new-issues: ${{ github.event.schedule == '' }} # show only new issues, unless it's a scheduled run allow-extra-out-format-args: true args: --out-format checkstyle:golangci-lint-report.xml + - name: Install bat + uses: awalsh128/cache-apt-pkgs-action@1850ee53f6e706525805321a3f2f863dcf73c962 # v1.3.0 + with: + packages: bat + if: always() - name: Print lint report artifact if: always() - run: test -f golangci-lint-report.xml && cat golangci-lint-report.xml || true + shell: bash + run: test -f golangci-lint-report.xml && bat -pP golangci-lint-report.xml || true - name: Store lint report artifact if: always() uses: actions/upload-artifact@3cea5372237819ed00197afe530f5a7ea3e805c8 # v3.1.0 From a1815b376ad214a65a84a81162a0ca0fb03afbdf Mon Sep 17 00:00:00 2001 From: jmank88 Date: Sat, 20 May 2023 07:12:36 -0500 Subject: [PATCH 2/2] ignore error --- core/main.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/core/main.go b/core/main.go index 354b70968cb..e6d0c2ebd96 100644 --- a/core/main.go +++ b/core/main.go @@ -28,10 +28,7 @@ func init() { func Main() (code int) { recovery.ReportPanics(func() { app := cmd.NewApp(newProductionClient()) - if err := app.Run(os.Args); err != nil { - fmt.Fprintf(os.Stderr, "Error running app: %v\n", err) - code = 1 - } + app.Run(os.Args) }) return }