File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,21 +86,24 @@ jobs:
8686 run : go install github.com/golang/protobuf/protoc-gen-go@latest
8787
8888 - name : Add protoc-gen-go to path
89+ shell : bash
8990 run : |
9091 echo "$HOME/go/bin" >> $GITHUB_PATH
9192 # Also set for current step
9293 export PATH="$PATH:$HOME/go/bin"
9394 echo "PATH=$PATH:$HOME/go/bin" >> $GITHUB_ENV
9495
9596 - name : Test protoc-gen-go availability
97+ shell : bash
9698 run : |
9799 echo "Current PATH: $PATH"
98100 echo "Go bin directory contents:"
99101 ls -la $HOME/go/bin/
100- echo "Testing protoc-gen-go..."
101- protoc-gen-go --version
102102 echo "Which protoc-gen-go:"
103103 which protoc-gen-go
104+ echo "Testing protoc can find protoc-gen-go plugin..."
105+ # Test that protoc can find the go plugin (this will show an error about missing .proto file, but that's expected)
106+ protoc --go_out=/tmp --help | grep -q "go_out" && echo "✅ protoc recognizes --go_out flag" || echo "❌ protoc does not recognize --go_out flag"
104107
105108 - name : Use Cross
106109 if : contains(matrix._.os, 'ubuntu')
You can’t perform that action at this time.
0 commit comments