Skip to content

Commit d139150

Browse files
embed: document go.mod exclusion
Fixes: #45197 Change-Id: I61dff71ba02bfafd054408d73b8a15db745d0198
1 parent ac64a36 commit d139150

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/embed/embed.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
// Patterns must not match files whose names include the special punctuation characters " * < > ? ` ' | / \ and :.
9595
// Matches for empty directories are ignored. After that, each pattern in a //go:embed line
9696
// must match at least one file or non-empty directory.
97+
// If a non empty directory is matched, there must be no files with the name go.mod in the matching directory.
9798
//
9899
// If any patterns are invalid or have invalid matches, the build will fail.
99100
//

0 commit comments

Comments
 (0)