Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple packages in the same diectory in Goland #6772

Open
bdleitner opened this issue Sep 20, 2024 · 0 comments
Open

Support multiple packages in the same diectory in Goland #6772

bdleitner opened this issue Sep 20, 2024 · 0 comments
Assignees
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: GoLand GoLand plugin type: feature request

Comments

@bdleitner
Copy link

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 ..."

multiple_packages

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

Have you found anything relevant by searching the web?

No response

Any other information, logs, or outputs that you want to share?

No response

@bdleitner bdleitner added awaiting-maintainer Awaiting review from Bazel team on issues type: feature request labels Sep 20, 2024
@github-actions github-actions bot added the product: GoLand GoLand plugin label Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting-maintainer Awaiting review from Bazel team on issues product: GoLand GoLand plugin type: feature request
Projects
None yet
Development

No branches or pull requests

2 participants