summaryrefslogtreecommitdiff
path: root/src/cmd/go/internal/imports/tags.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/go/internal/imports/tags.go')
-rw-r--r--src/cmd/go/internal/imports/tags.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/go/internal/imports/tags.go b/src/cmd/go/internal/imports/tags.go
index 01b448b914..d1467b81b0 100644
--- a/src/cmd/go/internal/imports/tags.go
+++ b/src/cmd/go/internal/imports/tags.go
@@ -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
}