-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from goccy/fix-go-mod-vendor
Fix go mod vendor
- Loading branch information
Showing
1 changed file
with
12 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |