]> Cypherpunks repositories - gostls13.git/commit
go/build: call ctxt.match for checking file name constraints
authorZhongpeng Lin <zplin@uber.com>
Mon, 21 May 2018 19:04:00 +0000 (19:04 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 22 May 2018 18:47:03 +0000 (18:47 +0000)
commit3d15f768814e8b06ae159b4da8f34a0c702a4cf1
tree9a04949723ddc93f7e02b2c3b5f441a9f5f7a014
parenta10d390676937ade864e8b20878a51d6e927ea2c
go/build: call ctxt.match for checking file name constraints

This makes the checking of build tags in file names consistent to that of the build tags in `// +build` line.

Fixed #25461

Change-Id: Iba14d1050f8aba44e7539ab3b8711af1980ccfe4
GitHub-Last-Rev: 11b14e239dd85e11e669919aab45494aee7c59a3
GitHub-Pull-Request: golang/go#25480
Reviewed-on: https://go-review.googlesource.com/113818
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/go/build/build.go
src/go/build/build_test.go