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
I was thinking that it's an easy fix, yeah. I don't have dev environment setup, but just from static code analysis, it seems like in all places where path is generated, it is using options.output_dir, so I tried changing out in buf generation template (which supposedly translates to --js_out for protoc), but it didn't change a thing. Weird.
Ultimately you are just using provided base class for the code generator, which relies on the GeneratorContext. Every time you context->Open a file, it will add it to the response, so we just need to make sure options.output_dir does not have . or .. in it in places like this. or maybe just validate it when options are being parsed here initially.
It would be nice though, if the base class (GeneratorResponseContext) would clean up the path to make it conform to the response contract, instead of each generator dealing with this.
When using the plugin v3.21.2 through
buf
on Linux (Ubuntu), I'm getting the following warning:...which is rather self-explanatory. I suspect this might be because of the
.
at the beginning.The
buf
command I was using is the following:(i.e. I used full path for both - input and output paths)
buf
generation template isI tried changing
out
to not be.
to no avail.There are no warnings when plugin is used through
protoc
directly, but I think thebuf
is right that returned file path should not have.
components.The text was updated successfully, but these errors were encountered: