diff --git a/.goreleaser.yml b/.goreleaser.yml index c47ef05c..32cecd09 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -52,6 +52,7 @@ builds: goarch: riscv64 flags: - -trimpath + - -tags={{.Env.ERGO_BUILD_TAGS}} archives: - @@ -72,6 +73,7 @@ archives: - default.yaml - traditional.yaml - docs/API.md + - docs/BUILD.md - docs/MANUAL.md - docs/USERGUIDE.md - languages/*.yaml diff --git a/Makefile b/Makefile index 29fa32ef..e66d6745 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ install: .PHONY: release release: - goreleaser --skip=publish --clean + ERGO_BUILD_TAGS="$(ERGO_BUILD_TAGS)" goreleaser --skip=publish --clean .PHONY: minimal minimal: diff --git a/irc/sqlite/history.go b/irc/sqlite/history.go index 26432878..2971d039 100644 --- a/irc/sqlite/history.go +++ b/irc/sqlite/history.go @@ -1,4 +1,4 @@ -//go:build sqlite +//go:build sqlite && (linux || darwin || freebsd || windows) // Copyright (c) 2020 Shivaram Lingamneni // released under the MIT license diff --git a/irc/sqlite/stub.go b/irc/sqlite/stub.go index ea53ca6d..d64a5e6f 100644 --- a/irc/sqlite/stub.go +++ b/irc/sqlite/stub.go @@ -1,4 +1,4 @@ -//go:build !sqlite +//go:build !sqlite || !(linux || darwin || freebsd || windows) // Copyright (c) 2020 Shivaram Lingamneni // released under the MIT license