From e0c1b974c944b5d2a94d47e3de1302940f086aab Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Sun, 16 Jun 2024 09:46:17 +0200 Subject: [PATCH] add cgo to build constraints Signed-off-by: Nicola Murino --- internal/dataprovider/sqlite.go | 4 ++-- internal/dataprovider/sqlite_disabled.go | 4 ++-- internal/dataprovider/unixcrypt.go | 4 ++-- internal/dataprovider/unixcrypt_disabled.go | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/internal/dataprovider/sqlite.go b/internal/dataprovider/sqlite.go index 82f298e2..5ab69394 100644 --- a/internal/dataprovider/sqlite.go +++ b/internal/dataprovider/sqlite.go @@ -12,8 +12,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -//go:build !nosqlite -// +build !nosqlite +//go:build !nosqlite && cgo +// +build !nosqlite,cgo package dataprovider diff --git a/internal/dataprovider/sqlite_disabled.go b/internal/dataprovider/sqlite_disabled.go index 6c7ea18d..8d2cba30 100644 --- a/internal/dataprovider/sqlite_disabled.go +++ b/internal/dataprovider/sqlite_disabled.go @@ -12,8 +12,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -//go:build nosqlite -// +build nosqlite +//go:build nosqlite || !cgo +// +build nosqlite !cgo package dataprovider diff --git a/internal/dataprovider/unixcrypt.go b/internal/dataprovider/unixcrypt.go index 9799e8a4..b6cbe52c 100644 --- a/internal/dataprovider/unixcrypt.go +++ b/internal/dataprovider/unixcrypt.go @@ -12,8 +12,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -//go:build unixcrypt -// +build unixcrypt +//go:build unixcrypt && cgo +// +build unixcrypt,cgo package dataprovider diff --git a/internal/dataprovider/unixcrypt_disabled.go b/internal/dataprovider/unixcrypt_disabled.go index ecf76997..038d9855 100644 --- a/internal/dataprovider/unixcrypt_disabled.go +++ b/internal/dataprovider/unixcrypt_disabled.go @@ -12,8 +12,8 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -//go:build !unixcrypt -// +build !unixcrypt +//go:build !unixcrypt || !cgo +// +build !unixcrypt !cgo package dataprovider