Support multiple packages in the same diectory in Goland #6773
Labels
awaiting-maintainer
Awaiting review from Bazel team on issues
product: GoLand
GoLand plugin
type: feature request
Description of the feature request:
A common (recommended, even) pattern within Google is to have multiple packages in the same directory, with one build target per package (commonly, one file per go package).
This can be done with bazel using Golang and everything will compile, but Golang will highlight the package names and complain, saying "multiple packages in the directory ..."
I haven't found a way to disable this inspection. Since bazel will already fail to build if there's more than one package in the srcs for a target, the best solution here would be if the Goland warning could manifest if that scenario occurs (source files with different packages included in the same
go_library
), but disabling that warning entirely would be better than what it is now.Which category does this issue belong to?
GoLand
What underlying problem are you trying to solve with this feature?
Avoid spurious warnings from the IDE.
What operating system, Intellij IDE and programming languages are you using? Please provide specific versions.
Windows 10
Goland
go 1.21.8 (from bazel run @rules_go//go -- mod init)
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: