Skip to content

Commit 080466f

Browse files
seankhliaogopherbot
authored andcommitted
embed: document exclusions more explicitly
Fixes #45197 Fixes #45744 Change-Id: Ic221da1b652f693c7aa37287932c0a8726f46765 Reviewed-on: https://go-review.googlesource.com/c/go/+/633815 Reviewed-by: Michael Knyszek <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> LUCI-TryBot-Result: Go LUCI <[email protected]>
1 parent be0c454 commit 080466f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/embed/embed.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@
9090
// depending on whether the package wants to make the data available to other packages.
9191
// It can only be used with variables at package scope, not with local variables.
9292
//
93-
// Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links.
93+
// Patterns must not match files outside the package's module, such as ‘.git/*’, symbolic links,
94+
// 'vendor/', or any directories containing go.mod (these are separate modules).
9495
// Patterns must not match files whose names include the special punctuation characters " * < > ? ` ' | / \ and :.
9596
// Matches for empty directories are ignored. After that, each pattern in a //go:embed line
9697
// must match at least one file or non-empty directory.

0 commit comments

Comments
 (0)