-
-
Notifications
You must be signed in to change notification settings - Fork 668
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make go_test() with embedsrcs work (#2936)
Even though there already is testing coverage for go_test() with embedsrcs using generated files and such, I can't seem to get one of the most trivial cases to work. The file to be embedded doesn't get placed in the sandbox during GoCompilePkg. This change addresses this by explicitly copying the embedsrcs from the internal source to the external, which seems to make things work properly.
- Loading branch information
1 parent
63dfd99
commit 9f77676
Showing
3 changed files
with
13 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
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
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,6 @@ | ||
package embedsrcs_simple_test | ||
|
||
import _ "embed" | ||
|
||
//go:embed embedsrcs_static/no | ||
var no []byte |