aboutsummaryrefslogtreecommitdiff
path: root/src/embed
diff options
context:
space:
mode:
authorSean Liao <sean@liao.dev>2024-12-04 21:56:45 +0000
committerGopher Robot <gobot@golang.org>2024-12-05 17:20:19 +0000
commit080466fffb47f420456b4a19129ffb271cae5aa6 (patch)
tree58b67c16aa63a0bdfa66f3c34262f18a88e2afff /src/embed
parentbe0c4547d21e7e29ba062af7240b67e2263e5325 (diff)
downloadgo-080466fffb47f420456b4a19129ffb271cae5aa6.tar.xz
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 <mknyszek@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Diffstat (limited to 'src/embed')
-rw-r--r--src/embed/embed.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/embed/embed.go b/src/embed/embed.go
index 210ea258c6..4d5e418c90 100644
--- a/src/embed/embed.go
+++ b/src/embed/embed.go
@@ -90,7 +90,8 @@
// depending on whether the package wants to make the data available to other packages.
// It can only be used with variables at package scope, not with local variables.
//
-// Patterns must not match files outside the package's module, such as ‘.git/*’ or symbolic links.
+// Patterns must not match files outside the package's module, such as ‘.git/*’, symbolic links,
+// 'vendor/', or any directories containing go.mod (these are separate modules).
// Patterns must not match files whose names include the special punctuation characters " * < > ? ` ' | / \ and :.
// Matches for empty directories are ignored. After that, each pattern in a //go:embed line
// must match at least one file or non-empty directory.