Skip to content

x/tools/gopls: gopls restart needed after changing build tags #54147

@muirdm

Description

@muirdm

With gopls on master (9580c84), starting with:

-- foo.go --
package main

func main() {}
-- bar.go --
package main

func main() {}
  1. Confirm you get "duplicate main" diagnostic
  2. Add "//go:build ignore" to one of the files
  3. Observe you still see the diagnostic until you restart gopls

Metadata

Metadata

Assignees

Labels

FrozenDueToAgeToolsThis label describes issues relating to any tools in the x/tools repository.goplsIssues related to the Go language server, gopls.gopls/metadataIssues related to metadata loading in gopls

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions