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

Modify go_package to a full path in plugin's proto #325

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jbkingsley
Copy link

These changes is friendly for bazel to avoid from the error “missing strict dependencies” .

When I used bazel build to build exe file, I encountered the error:
compilepkg: missing strict dependencies:
/private/var/tmp/_bazel_kk/43cdc04641453be2515122d57e93f7eb/sandbox/darwin-sandbox/1312/execroot/_main/external/gazellego_deps~com_github_hashicorp_go_plugin/grpc_broker.go: import of "github.com/hashicorp/go-plugin/internal/plugin"
/private/var/tmp/_bazel_kk/43cdc04641453be2515122d57e93f7eb/sandbox/darwin-sandbox/1312/execroot/_main/external/gazelle
go_depscom_github_hashicorp_go_plugin/grpc_client.go: import of "github.com/hashicorp/go-plugin/internal/plugin"
/private/var/tmp/_bazel_kk/43cdc04641453be2515122d57e93f7eb/sandbox/darwin-sandbox/1312/execroot/_main/external/gazelle~~go_deps
com_github_hashicorp_go_plugin/grpc_controller.go: import of "github.com/hashicorp/go-plugin/internal/plugin"
/private/var/tmp/_bazel_kk/43cdc04641453be2515122d57e93f7eb/sandbox/darwin-sandbox/1312/execroot/_main/external/gazellego_deps~com_github_hashicorp_go_plugin/grpc_server.go: import of "github.com/hashicorp/go-plugin/internal/plugin"
/private/var/tmp/_bazel_kk/43cdc04641453be2515122d57e93f7eb/sandbox/darwin-sandbox/1312/execroot/_main/external/gazelle
go_deps~com_github_hashicorp_go_plugin/grpc_stdio.go: import of "github.com/hashicorp/go-plugin/internal/plugin"
No dependencies were provided.

The reason is that the go_package be set to relative path, and bazel can not identify it.

Though these maybe are the issues of bazel, using full path in golang is common too. So I pull this request.

@jbkingsley jbkingsley requested a review from a team as a code owner November 20, 2024 09:06
Copy link

hashicorp-cla-app bot commented Nov 20, 2024

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant