]> Cypherpunks repositories - gostls13.git/commit
cmd/go: ignore unknown directives in dependency go.mod files
authorRuss Cox <rsc@golang.org>
Wed, 25 Jul 2018 00:21:37 +0000 (20:21 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 28 Jul 2018 01:15:16 +0000 (01:15 +0000)
commit0090c13c91e8ccf4a91312e8237fd3ad2d00b729
treedbff2e4519a25f066314474e3af87c1cc00d1683
parent9cde8048ad88587d90274ecbe9083326d56b6758
cmd/go: ignore unknown directives in dependency go.mod files

This will help with forward compatibility when we add additional
directives that only matter for the main module (or that can be
safely ignored otherwise).

Change-Id: Ida1e186fb2669b128aeb5a9a1187e2535b72b763
Reviewed-on: https://go-review.googlesource.com/125936
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/cmd/go/internal/modfile/read_test.go
src/cmd/go/internal/modfile/rule.go
src/cmd/go/internal/modload/load.go
src/cmd/go/testdata/mod/rsc.io_badmod_v1.0.0.txt [new file with mode: 0644]
src/cmd/go/testdata/script/mod_load_badmod.txt [new file with mode: 0644]