Skip to content

Commit 9324a76

Browse files
committed
internal/task: filter out cmd/internal/metadata
We don't want to include the metadata command in the release. Exclude it. For golang/go#50146. Change-Id: I0e7c8b94afe07ffd8396d7bac1c039c972a1b855 Reviewed-on: https://go-review.googlesource.com/c/build/+/411061 Reviewed-by: Alex Rakoczy <[email protected]> Run-TryBot: Heschi Kreinick <[email protected]> TryBot-Result: Gopher Robot <[email protected]>
1 parent c39906c commit 9324a76

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

internal/task/buildrelease.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,9 @@ var dropPatterns = []string{
131131
// Users don't need the api checker binary pre-built. It's
132132
// used by tests, but all.bash builds it first.
133133
`pkg/tool/[^/]+/api.*`,
134+
// Users also don't need the metadata command, which is run dynamically
135+
// by cmd/dist. As of writing we don't know why it's showing up at all.
136+
`pkg/tool/[^/]+/metadata.*`,
134137
// Remove pkg/${GOOS}_${GOARCH}/cmd. This saves a bunch of
135138
// space, and users don't typically rebuild cmd/compile,
136139
// cmd/link, etc. If they want to, they still can, but they'll

internal/task/buildrelease_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ func TestDropRegexpMatches(t *testing.T) {
4040
{"bin/go", true},
4141
{"pkg/obj/README", false},
4242
{"pkg/tool/linux_amd64/api", false},
43+
{"pkg/tool/linux_amd64/metadata", false},
4344
{"pkg/linux_amd64/cmd/go.a", false},
4445
{"pkg/linux_amd64/runtime.a", true},
4546
{"bin/go.exe~", false},

0 commit comments

Comments
 (0)