-
-
Notifications
You must be signed in to change notification settings - Fork 262
Open
Description
Preflight checklist
- I could not find a solution in the existing issues, docs, nor discussions.
- I agree to follow this project's Code of Conduct.
- I have read and am following this repository's Contribution Guidelines.
- I have joined the Ory Community Slack.
- I am signed up to the Ory Security Patch Newsletter.
Ory Network Project
No response
Describe your problem
If BuildAndRunWithBuildOptions fails because of a problem during building a docker image then the error is not always helpful e.g.
The command '/bin/sh -c go build -o rolldice main.go' returned a non-zero code:
Describe your ideal solution
It would be easier if it is possible to set the output and error streams directly on BuildOptions.
Workarounds or alternatives
To mitigate it I use pool.Client.BuildImage where I set OutputStream and ErrorStream to t.Output() and then I call pool.RunWithOptions. Then I get can get following test output:
...
./main.go:160:20: syntax error: unexpected name c at end of statement
http_go_otel_test.go:149:
Error Trace: /home/ropajak/repos/opentelemetry-ebpf-instrumentation/internal/test/integration/http_go_otel_test.go:149
Error: Received unexpected error:
The command '/bin/sh -c go build -o rolldice main.go' returned a non-zero code: 1
Test: TestHTTPGoOTelInstrumentedApp
Messages: could not build test server Docker image
Version
v3.12.0
Additional Context
Thank you for this library. I love it!
If you want I can try addressing the issue myself given it is accepted.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels