Skip to content

Commit 856adbc

Browse files
committed
Fix GoReleaser build: use dir+main instead of file path
Using main: cmd/kvs/main.go caused go build to compile only that single file as a standalone package, excluding serve.go and making newServeCmd undefined. Switch to dir + main (.) so all .go files in the package are included.
1 parent 6ed5a34 commit 856adbc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.goreleaser.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ before:
1313
builds:
1414
- id: kvs
1515
binary: kvs
16-
main: cmd/kvs/main.go
16+
dir: cmd/kvs
17+
main: .
1718
ldflags:
1819
- -s -w -X main.version={{ .Version }}
1920
goos:

0 commit comments

Comments
 (0)