You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To have a documentation guide on how to handle imports or for imports to be automatically resolved.
Version
2.8.1
Environment
Node v20.11.0
How can we reproduce this bug?
Example proto file:
syntax="proto3";
packagecaption_service.v1;
import"google/api/annotations.proto";
import"messages/image_dto/v1/image_dto.proto";
// Request to get caption for an imagemessageGetCaptionRequest {
shared.messages.image_dto.v1.ImageDtoimage=1;
}
// Response containing caption for an imagemessageGetCaptionResponse {
stringcaption=1;
}
// Service to handle all image captioning operationsserviceCaptionService {
// Get caption for an imagerpcget_caption(GetCaptionRequest) returns (GetCaptionResponse) {
option(google.api.http)= {
post: "/v1/caption"body: "*"
};
}
}
Example workflow file:
version: "1.1"name: Caption workflowenv:
host: localhost:9091tests:
caption:
name: Get caption of test imagesteps:
- name: Get captiongrpc:
proto:
- ../../shared/proto/services/caption_service/v1/caption_service.protohost: ${{env.host}}service: caption_service.v1.CaptionServicemethod: get_captiondata:
image:
path: "test/img.jpg"
I use buf for code gen and dep management. This is my buf.yaml, which also specifies the base path for all proto files:
Error message when running stepci run workflow.yaml
FAIL Get caption of test image ⏲ 0.003s ⬆ 0 bytes ⬇ 0 bytes
Summary
✕ Get caption of test image failed after 0.003s
⚠︎ caption › Get caption of test image
ENOENT: no such file or directory, open 'shared/proto/services/caption_service/v1/google/api/annotations.proto'
Would you be interested in working on a bugfix for this issue?
Yes! Assign me
The text was updated successfully, but these errors were encountered:
What happened?
Workflows fail due to unresolved imports.
What did you expect to happen?
To have a documentation guide on how to handle imports or for imports to be automatically resolved.
Version
2.8.1
Environment
Node v20.11.0
How can we reproduce this bug?
Example proto file:
Example workflow file:
I use
buf
for code gen and dep management. This is mybuf.yaml
, which also specifies the base path for all proto files:Relevant log output
Error message when running
stepci run workflow.yaml
Would you be interested in working on a bugfix for this issue?
The text was updated successfully, but these errors were encountered: