detached 053061e

fix: wrong variable name in goreleaser

commit
053061eb6c8f422118e7d5147254cf2aca7cac2b
author
Brice · · 2024-11-20 09:58 UTC
parent
4bf9f06
signature
unsigned
3 files · +5 -4
M .goreleaser.yaml +1 -1
@@ -21,7 +21,7 @@ builds:
2121 env:
2222 - CGO_ENABLED=0
2323 ldflags:
24- - -s -w -X main.build={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
24+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
2525
2626 dockers:
2727 - image_templates:
@@ -21,7 +21,7 @@ builds:
21 env:21 env:
22 - CGO_ENABLED=022 - CGO_ENABLED=0
23 ldflags:23 ldflags:
24- - -s -w -X main.build={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}24+ - -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}
25 25
26 dockers:26 dockers:
27 - image_templates:27 - image_templates:
M internal/server/new_server.go +4 -1
@@ -2,12 +2,12 @@ package server
22
33 import (
44 "io"
5- "log"
65 "time"
76
87 "github.com/bnema/gordon/internal/common"
98 "github.com/bnema/gordon/internal/templating"
109 "github.com/bnema/gordon/internal/webui"
10+ "github.com/charmbracelet/log"
1111 )
1212
1313 func NewServerApp(buildConfig *common.BuildConfig) (*App, error) {
@@ -15,6 +15,9 @@ func NewServerApp(buildConfig *common.BuildConfig) (*App, error) {
1515 config := common.Config{
1616 Build: *buildConfig,
1717 }
18+
19+ log.Info("Starting Gordon server", "version", config.Build.BuildVersion)
20+
1821 _, err := config.LoadConfig()
1922 if err != nil {
2023 log.Fatalf("Failed to load configuration: %v", err)
@@ -2,12 +2,12 @@ package server
2 2
3 import (3 import (
4 "io"4 "io"
5- "log"
6 "time"5 "time"
7 6
8 "github.com/bnema/gordon/internal/common"7 "github.com/bnema/gordon/internal/common"
9 "github.com/bnema/gordon/internal/templating"8 "github.com/bnema/gordon/internal/templating"
10 "github.com/bnema/gordon/internal/webui"9 "github.com/bnema/gordon/internal/webui"
10+ "github.com/charmbracelet/log"
11 )11 )
12 12
13 func NewServerApp(buildConfig *common.BuildConfig) (*App, error) {13 func NewServerApp(buildConfig *common.BuildConfig) (*App, error) {
@@ -15,6 +15,9 @@ func NewServerApp(buildConfig *common.BuildConfig) (*App, error) {
15 config := common.Config{15 config := common.Config{
16 Build: *buildConfig,16 Build: *buildConfig,
17 }17 }
18+
19+ log.Info("Starting Gordon server", "version", config.Build.BuildVersion)
20+
18 _, err := config.LoadConfig()21 _, err := config.LoadConfig()
19 if err != nil {22 if err != nil {
20 log.Fatalf("Failed to load configuration: %v", err)23 log.Fatalf("Failed to load configuration: %v", err)
M main.go +0 -2
@@ -2,7 +2,6 @@ package main
22
33 import (
44 "github.com/bnema/gordon/cmd"
5- "github.com/charmbracelet/log"
65 )
76
87 var (
@@ -12,6 +11,5 @@ var (
1211 )
1312
1413 func main() {
15- log.Info("Starting Gordon", "version", version, "commit", commit, "date", date)
1614 cmd.ExecuteCLI(version, commit, date)
1715 }
@@ -2,7 +2,6 @@ package main
2 2
3 import (3 import (
4 "github.com/bnema/gordon/cmd"4 "github.com/bnema/gordon/cmd"
5- "github.com/charmbracelet/log"
6 )5 )
7 6
8 var (7 var (
@@ -12,6 +11,5 @@ var (
12 )11 )
13 12
14 func main() {13 func main() {
15- log.Info("Starting Gordon", "version", version, "commit", commit, "date", date)
16 cmd.ExecuteCLI(version, commit, date)14 cmd.ExecuteCLI(version, commit, date)
17 }15 }

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 7

Tags 106

↑↓ moveenter openesc close