Skip to content

Commit 829e9ab

Browse files
committed
fix(goreleaser): correct build configuration and tidy command path
1 parent d1fbc25 commit 829e9ab

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.goreleaser.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,20 @@ version: 2
44

55
before:
66
hooks:
7-
- go mod tidy
7+
- go mod tidy -C apps/cli
88

99
builds:
10-
- env:
10+
- dir: apps/cli
11+
env:
1112
- CGO_ENABLED=0
1213
goos:
1314
- linux
1415
goarch:
1516
- amd64
16-
main: ./apps/cli/cmd/app/main.go
17+
main: ./cmd/app/main.go
1718
binary: cdns
1819
ldflags:
19-
- -s -w -X main.Version={{.Version}}
20+
- -s -w -X main.buildVersion={{.Version}} -X main.buildCommit={{.Commit}} -X main.buildDate={{.Date}} -X main.buildBy=goreleaser
2021

2122
archives:
2223
- formats:

0 commit comments

Comments
 (0)