]> Cypherpunks repositories - gostls13.git/commit
cmd/go: test that the reserved paths "example" and "test" are not used
authorBryan C. Mills <bcmills@google.com>
Fri, 29 Oct 2021 02:25:02 +0000 (22:25 -0400)
committerBryan C. Mills <bcmills@google.com>
Fri, 29 Oct 2021 04:21:07 +0000 (04:21 +0000)
commitf2885263748364a2a7f4e0d47abd5095699cd39f
tree1d1cffffc4094b25f439bd745842c404f957938e
parent2c7cdec2a762108ae9231b7861c3689f4d23b58c
cmd/go: test that the reserved paths "example" and "test" are not used

Proposal #37641 reserved the paths "example" and "test" for end users,
so no path beginning with either of those elements may be added to the
standard library.

(We are unlikely to add them by accident, but this test codifies the
policy accepted in the proposal.)

Fixes #37641

Change-Id: I999064180336c923d4918a1176c371b8f5666f8b
Reviewed-on: https://go-review.googlesource.com/c/go/+/359576
Trust: Bryan C. Mills <bcmills@google.com>
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
src/cmd/go/testdata/script/list_reserved.txt [new file with mode: 0644]