diff --git a/storage/sql/sqlite_no_cgo.go b/storage/sql/sqlite_no_cgo.go new file mode 100644 index 00000000..80d14108 --- /dev/null +++ b/storage/sql/sqlite_no_cgo.go @@ -0,0 +1,19 @@ +//go:build !cgo +// +build !cgo + +// This is a stub for the no CGO compilation (CGO_ENABLED=0) + +package sql + +import ( + "fmt" + "log/slog" + + "github.com/dexidp/dex/storage" +) + +type SQLite3 struct{} + +func (s *SQLite3) Open(logger *slog.Logger) (storage.Storage, error) { + return nil, fmt.Errorf("SQLite storage is not available: binary compiled without CGO support. Recompile with CGO_ENABLED=1 or use a different storage backend.") +}