From 8006434944aea41faeb714fe8062383281f37ad3 Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Tue, 18 Oct 2022 21:28:24 +0900 Subject: [PATCH] Fix go mod vendor --- vendor.go | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 vendor.go diff --git a/vendor.go b/vendor.go new file mode 100644 index 00000000..bdda2a36 --- /dev/null +++ b/vendor.go @@ -0,0 +1,12 @@ +// This file is intended to fix a bug that occurs with Go's go mod vendor and cgo combination. +// Normally, directories containing only C/C++ language files are ignored by go mod vendor, but go:embed forces them to be copied. +// If we do not use embed.FS to perform the operation, the generated binaries will not reflect the embedded files. +// See detail issue: https://github.com/golang/go/issues/26366 +package zetasql + +import ( + "embed" +) + +//go:embed internal/ccall/* +var _ embed.FS