Skip to content

Commit

Permalink
build(goreleaser): enable CGO
Browse files Browse the repository at this point in the history
This is required for sqlite3, which is used as the storage backend for
bootloop.
  • Loading branch information
synackd committed Oct 31, 2024
1 parent 2e4e5d8 commit 223f300
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ builds:
-X main.BuildUser={{ .Env.BUILD_USER }} "
binary: coredhcp
env:
- CGO_ENABLED=0
# The bootloop plugin uses sqlite3 which requires CGO.
- CGO_ENABLED=1
- >-
CC={{- if eq .Os "linux" -}}
{{- if eq .Arch "amd64" -}}gcc{{- else -}}aarch64-linux-gnu-gcc{{- end -}}
{{- end }}
dockers:
Expand Down

0 comments on commit 223f300

Please sign in to comment.