Skip to content

Commit c0703b5

Browse files
authored
Merge pull request #20 from goccy/fix-go-mod-vendor
Fix go mod vendor
2 parents cdb1cf7 + 8006434 commit c0703b5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Diff for: vendor.go

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// This file is intended to fix a bug that occurs with Go's go mod vendor and cgo combination.
2+
// Normally, directories containing only C/C++ language files are ignored by go mod vendor, but go:embed forces them to be copied.
3+
// If we do not use embed.FS to perform the operation, the generated binaries will not reflect the embedded files.
4+
// See detail issue: https://github.com/golang/go/issues/26366
5+
package zetasql
6+
7+
import (
8+
"embed"
9+
)
10+
11+
//go:embed internal/ccall/*
12+
var _ embed.FS

0 commit comments

Comments
 (0)