]> Cypherpunks repositories - gostls13.git/commit
cmd/go/internal/pkg: fail on bad filenames
authorIan Alexander <jitsu@google.com>
Tue, 6 May 2025 19:16:03 +0000 (15:16 -0400)
committerIan Alexander <jitsu@google.com>
Wed, 14 May 2025 20:48:02 +0000 (13:48 -0700)
commitac341b8e6bc1eb99ddd62c3dea293e41bc582c10
tree9e9fc756311ed852fae2ee23fbe2bdcab0d26e61
parent12e11e75235a7df2f118becac997a0aca3bb73b0
cmd/go/internal/pkg: fail on bad filenames

Unhidden filenames with forbidden characters in subdirectories now
correctly fail the build instead of silently being skipped.
Previously this behavior would only trigger on files in the root of
the embedded directory.

Fixes #54003
Change-Id: I52967d90d6b7929e4ae474b78d3f88732bdd3ac4
Reviewed-on: https://go-review.googlesource.com/c/go/+/670615
Reviewed-by: Michael Matloob <matloob@google.com>
Reviewed-by: Michael Matloob <matloob@golang.org>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/cmd/go/internal/load/pkg.go
src/cmd/go/testdata/script/embed.txt