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

compilation fails with bazel in resty 2.8 #700

Closed
pdeva opened this issue Sep 23, 2023 · 4 comments · Fixed by #707
Closed

compilation fails with bazel in resty 2.8 #700

pdeva opened this issue Sep 23, 2023 · 4 comments · Fixed by #707
Assignees
Labels
Milestone

Comments

@pdeva
Copy link

pdeva commented Sep 23, 2023

while it works fine with go build, with bazel build it fails.

bazelisk build //...
INFO: Invocation ID: 93e6226f-ae83-49ae-9202-4a7030c7fd62
INFO: Analyzed 116 targets (1 packages loaded, 13 targets configured).
INFO: Found 116 targets...
ERROR: /home/pdeva/.cache/bazel/_bazel_pdeva/b1a4ac6988a94eb0ad1222a792d4139b/external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/BUILD.bazel:8:11: GoCompilePkg external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/resty.a failed: (Exit 1): builder failed: error executing command (from target @gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2//:resty) bazel-out/aarch64-opt-exec-2B5CBBC6/bin/external/rules_go~0.41.0~go_sdk~astradot_monorepo__download_0/builder_reset/builder compilepkg -sdk external/rules_go~0.41.0~go_sdk~astradot_monorepo__download_0 ... (remaining 46 arguments skipped)

Use --sandbox_debug to see verbose messages from the sandbox and retain the sandbox build root for debugging
external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/client.go:420:29: undefined: digestTransport
external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/client.go:421:23: undefined: digestCredentials
external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/request.go:522:29: undefined: digestTransport
external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/request.go:523:23: undefined: digestCredentials
external/gazelle~0.33.0~go_deps~com_github_go_resty_resty_v2/transport.go:28:26: undefined: transportDialContext
compilepkg: error running subcommand external/rules_go~0.41.0~go_sdk~astradot_monorepo__download_0/pkg/tool/linux_arm64/compile: exit status 2
INFO: Elapsed time: 7.155s, Critical Path: 0.08s
INFO: 2 processes: 2 internal.
FAILED: Build did NOT complete successfully
make: *** [Makefile:56: build] Error 1

seems you havent put digest.go in your BUILD.bazel file

@jeevatkm jeevatkm self-assigned this Sep 23, 2023
@jeevatkm jeevatkm added the bug label Sep 23, 2023
@jeevatkm jeevatkm added this to the v2.9.0 milestone Sep 23, 2023
@jeevatkm
Copy link
Member

@pdeva Can you please try the branch gh-700 and share your feedback? then I would create a PR.

@pdeva
Copy link
Author

pdeva commented Sep 24, 2023

@pdeva Can you please try the branch gh-700 and share your feedback? then I would create a PR.

yup works fine with this

@jeevatkm
Copy link
Member

@pdeva Thanks for the confirmation.

@pdeva
Copy link
Author

pdeva commented Sep 25, 2023

when is this expected to be released?

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

Successfully merging a pull request may close this issue.

2 participants