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

Add WebSocket proxy to integration test gateway [Reference PR - Do Not Merge] #5338

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

paskozdilar
Copy link
Contributor

@paskozdilar paskozdilar commented Mar 8, 2025

REFERENCE PR - DO NOT MERGE


I'm trying to get Bazel to build and run my integration tests so I can verify they fail.

For the first step, I've added a WebSocket proxy to examples/internal/gateway/handlers.go, without any tests, but Bazel build fails on my machine:

ERROR: no such package '@@[unknown repo 'com_github_gorilla_websocket' requested from @@]//': The repository '@@[unknown repo 'com_github_gorilla_websocket' requested from @@]' could not be resolved: No repository visible as '@com_github_gorilla_websocket' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration
ERROR: /grpc-gateway/examples/internal/gateway/BUILD.bazel:3:11: no such package '@@[unknown repo 'com_github_gorilla_websocket' requested from @@]//': The repository '@@[unknown repo 'com_github_gorilla_websocket' requested from @@]' could not be resolved: No repository visible as '@com_github_gorilla_websocket' from main repository. Was the repository introduced in WORKSPACE? The WORKSPACE file is disabled by default in Bazel 8 (late 2024) and will be removed in Bazel 9 (late 2025), please migrate to Bzlmod. See https://bazel.build/external/migration and referenced by '//examples/internal/gateway:gateway'
Use --verbose_failures to see the command lines of failed build steps.
ERROR: Analysis of target '//examples/internal/gateway:gateway' failed; build aborted: Analysis failed
INFO: Elapsed time: 5.309s, Critical Path: 0.00s
INFO: 1 process: 1 internal.
ERROR: Build did NOT complete successfully
ERROR: No test targets were found, yet testing was requested
FAILED:
    Fetching repository @@gazelle++go_deps+org_golang_google_grpc; starting 5s
    Fetching repository @@gazelle++go_deps+org_golang_x_text; starting 5s
    Fetching repository @@gazelle++go_deps+org_golang_x_oauth2; starting 5s
    Fetching repository @@gazelle++go_deps+com_github_antihax_optional; starting 5s
    Fetching repository @@gazelle++go_deps+org_golang_google_genproto_googleapis_api; starting 5s
    Fetching repository @@gazelle++go_deps+org_golang_google_genproto_googleapis_rpc; starting 5s
    Fetching repository @@gazelle++go_deps+org_golang_google_grpc_cmd_protoc_gen_go_grpc; starting 5s
    Fetching repository @@googleapis+; starting 5s ... (10 fetches)

@johanbrandhorst
Do you have an idea what might be wrong here?

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