mirror of
https://github.com/golang/go
synced 2024-11-26 16:36:49 -07:00
cmd/go/internal/imports: include ToolTags in the Tags map
This commit is contained in:
parent
8c8429fe41
commit
d211e351ef
@ -36,6 +36,9 @@ func loadTags() map[string]bool {
|
||||
for _, tag := range cfg.BuildContext.BuildTags {
|
||||
tags[tag] = true
|
||||
}
|
||||
for _, tag := range cfg.BuildContext.ToolTags {
|
||||
tags[tag] = true
|
||||
}
|
||||
for _, tag := range cfg.BuildContext.ReleaseTags {
|
||||
tags[tag] = true
|
||||
}
|
||||
|
29
src/cmd/go/testdata/script/test_race_tag.txt
vendored
Normal file
29
src/cmd/go/testdata/script/test_race_tag.txt
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
# Tests Issue #54468
|
||||
|
||||
[short] skip 'links a test binary'
|
||||
[!race] skip
|
||||
|
||||
go mod tidy
|
||||
go test -c -o=$devnull -race .
|
||||
|
||||
! stderr 'cannot find package'
|
||||
|
||||
-- go.mod --
|
||||
module testrace
|
||||
|
||||
go 1.18
|
||||
|
||||
require rsc.io/sampler v1.0.0
|
||||
-- race_test.go --
|
||||
//go:build race
|
||||
|
||||
package testrace
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
_ "rsc.io/sampler"
|
||||
)
|
||||
|
||||
func TestRaceTag(t *testing.T) {
|
||||
}
|
Loading…
Reference in New Issue
Block a user