Skip to content

Commit 8708b89

Browse files
committed
Fix goreleaser config
There was an error generating the build ``` │ cmd/bot/main.go:48:14: undefined: parseConfig ``` I believe this is because we set the entry point for the application to me `cmd/bot/main.go` causing go to not be able to find the dependencies. THis updates the entry point to be `./cmd/bot`. There was also a warning for a deprecated flag: ``` • DEPRECATED: archives.format should not be used anymore, check https://goreleaser.com/deprecations#archivesformat for more info ``` This was updated in the `.goreleaser.yaml` file.
1 parent bd7d3e0 commit 8708b89

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.goreleaser.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ project_name: kost
66
builds:
77
- id: kost
88
binary: kost
9-
main: ./cmd/bot/main.go
9+
main: ./cmd/bot
1010
env:
1111
- CGO_ENABLED=0
1212
goos:
@@ -16,7 +16,7 @@ builds:
1616
- arm64
1717

1818
archives:
19-
- format: tar.gz
19+
- formats: ['tar.gz']
2020
# this name template makes the OS and Arch compatible with the results of uname.
2121
name_template: >-
2222
{{ .ProjectName }}_

0 commit comments

Comments
 (0)