Skip to content

Commit ff0e93e

Browse files
author
Bryan C. Mills
committed
doc/go1.16: note that package path elements beginning with '.' are disallowed
For #43985 Change-Id: I1a16f66800c5c648703f0a0d2ad75024525a710f Reviewed-on: https://go-review.googlesource.com/c/go/+/291389 Trust: Bryan C. Mills <bcmills@google.com> Run-TryBot: Bryan C. Mills <bcmills@google.com> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
1 parent 249da7e commit ff0e93e

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

doc/go1.16.html

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -174,10 +174,12 @@ <h4 id="modules">Modules</h4>
174174
non-reproducible builds.
175175
</p>
176176

177-
<p><!-- golang.org/issue/43052 -->
178-
The <code>go</code> command now disallows non-ASCII import paths in module
179-
mode. Non-ASCII module paths have already been disallowed so this change
180-
affects module subdirectory paths that contain non-ASCII characters.
177+
<p><!-- golang.org/issue/43052, golang.org/issue/43985 -->
178+
In module mode, the <code>go</code> command now disallows import paths that
179+
include non-ASCII characters or path elements with a leading dot character
180+
(<code>.</code>). Module paths with these characters were already disallowed
181+
(see <a href="/ref/mod#go-mod-file-ident">Module paths and versions</a>),
182+
so this change affects only paths within module subdirectories.
181183
</p>
182184

183185
<h4 id="embed">Embedding Files</h4>

0 commit comments

Comments
 (0)