Skip to content

Commit bdcba6f

Browse files
committed
cmd/go/internal/imports: loadTags() should merge tags from BuildContext.ToolTags
1 parent 9f0f87c commit bdcba6f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/cmd/go/internal/imports/tags.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ func loadTags() map[string]bool {
3636
for _, tag := range cfg.BuildContext.BuildTags {
3737
tags[tag] = true
3838
}
39+
for _, tag := range cfg.BuildContext.ToolTags {
40+
tags[tag] = true
41+
}
3942
for _, tag := range cfg.BuildContext.ReleaseTags {
4043
tags[tag] = true
4144
}

0 commit comments

Comments
 (0)