mirror of
https://github.com/Forceu/Gokapi.git
synced 2026-05-20 22:58:37 -05:00
Fixed possible null-pointer exception, fixed Docker binary not showing git details #309
This commit is contained in:
@@ -17,6 +17,8 @@ jobs:
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
|
||||
@@ -15,7 +15,9 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
|
||||
@@ -23,7 +23,9 @@ jobs:
|
||||
id: latestversion
|
||||
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: install buildx
|
||||
id: buildx
|
||||
uses: crazy-max/ghaction-docker-buildx@v1
|
||||
|
||||
@@ -10,7 +10,7 @@ jobs:
|
||||
|
||||
steps:
|
||||
- name: checkout code
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
- uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: '^1.20'
|
||||
|
||||
+8
-3
@@ -8,13 +8,14 @@ Main routine
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"github.com/forceu/gokapi/internal/configuration/database/migration"
|
||||
"github.com/forceu/gokapi/internal/helper/systemd"
|
||||
"os"
|
||||
"os/signal"
|
||||
"runtime/debug"
|
||||
"syscall"
|
||||
|
||||
"github.com/forceu/gokapi/internal/configuration/database/migration"
|
||||
"github.com/forceu/gokapi/internal/helper/systemd"
|
||||
|
||||
"github.com/forceu/gokapi/internal/configuration"
|
||||
"github.com/forceu/gokapi/internal/configuration/cloudconfig"
|
||||
"github.com/forceu/gokapi/internal/configuration/database"
|
||||
@@ -98,7 +99,11 @@ func showVersion(passedFlags flagparser.MainFlags) {
|
||||
} else {
|
||||
fmt.Println("Go Version: unknown")
|
||||
}
|
||||
parseBuildSettings(info.Settings)
|
||||
if info == nil {
|
||||
fmt.Println("Build Settings: unknown")
|
||||
} else {
|
||||
parseBuildSettings(info.Settings)
|
||||
}
|
||||
osExit(0)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user