From 99fdfc0bee45f2511c9cbaa6ae25bfd1707db781 Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Wed, 23 Nov 2022 19:26:43 -0500 Subject: [PATCH] Fix pkcs11ca with no cgo compilation bug Was seeing this bug on my M1 when running `ko build .`, since `PKCS11CA` needs to be redefined for the no-cgo case: ``` ../fulcio/pkg/ca/pkcs11ca/pkcs11canocgo.go:26:2: undefined: baseca ``` Signed-off-by: Priya Wadhwa --- pkg/ca/pkcs11ca/pkcs11canocgo.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkg/ca/pkcs11ca/pkcs11canocgo.go b/pkg/ca/pkcs11ca/pkcs11canocgo.go index 4299ac470..751b2a117 100644 --- a/pkg/ca/pkcs11ca/pkcs11canocgo.go +++ b/pkg/ca/pkcs11ca/pkcs11canocgo.go @@ -20,8 +20,14 @@ package pkcs11ca import ( "errors" + + "github.com/sigstore/fulcio/pkg/ca/baseca" ) +type PKCS11CA struct { + baseca.BaseCA +} + type Params struct { ConfigPath string RootID string