Closed LanDinh closed 2 years ago
I'd assume that the issue is that https://github.com/grpc/grpc-web/releases/download/1.3.0/protoc-gen-grpc-web-1.3.0-linux-x86_64 is a redirect to a https://github-releases.githubusercontent.com/ url. Thus you might be downloading the HTML content instead of the actual binary - thus the file won't work as an executable. Can you add the -L
flag which results in curl
following redirects? (I only tried this on Debian so far)
This was exactly it. Thanks for your help!
Hi all,
As is good practice, I don't check in generated code. This means that my CI (Github Actions) needs to generate the protobuf code first before running my tests. I install both
protoc
andprotoc-gen-grpc-web
as follows:I call protoc like this:
And it logs the following error:
This workflow runs on
ubuntu-latest
via the Github hosted Action runners.The script that does the call to generate the protos is marked as executable and is called directly and contains the shebang
#!/bin/bash
, so it should run withinbash
as shell.This means that since I added the proto generation, my CI is failing - can you help me? :D