From f1d5c4601bc79e217afc41d35544d2aca5db7a37 Mon Sep 17 00:00:00 2001 From: Marc Fielding Date: Fri, 20 Sep 2024 15:31:26 -0400 Subject: [PATCH] Add cgo dependency to avoid go fmt failures The `PR Check` GitHub Action runs `go fmt` and then builds and unit tests. But the `go fmt` run is currently failing with the error message: ``` package github.com/sijms/go-ora/examples/kerberos: C++ source files not allowed when not using cgo or SWIG: kerberos.cpp ``` This change adds a dummy cgo dependency in the example to make this error go away and unblock the PR checks. The PR checks will continue failing for now, however, because some unit tests themselves are failing. --- examples/kerberos/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/examples/kerberos/main.go b/examples/kerberos/main.go index 6b9891f..df06a48 100644 --- a/examples/kerberos/main.go +++ b/examples/kerberos/main.go @@ -1,6 +1,7 @@ package main import ( + "C" // Import cgo to avoid project-wide go fmt failures. "database/sql" "flag" "fmt"