-
-
Notifications
You must be signed in to change notification settings - Fork 390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The proto zip release asset does not contain the google/rpc/status.proto
file for v1.1.0
#2755
Comments
Use the `google proto files from the `v1.0.4` release for the time being Ref: arduino/arduino-cli#2755 Signed-off-by: dankeboy36 <dankeboy36@gmail.com>
* fix: patch for missing `google` proto files in CLI (arduino/arduino-cli#2755) * chore: replace `protoc` with `@pingghost/protoc` (arduino/arduino-ide#2457) * chore(ci): build on Node.js 20.x * fix(doc): refresh docs, update protoc version * chore: update formatter + fix example command --------- Signed-off-by: dankeboy36 <dankeboy36@gmail.com>
We recently migrated all protobuf tooling to One of the nice features of We may download it in some way before zipping the artifact @alessio-perugini |
I have an unrelated dev issue due to the mission status file. I want to use grpcurl to verify the CLI behavior.
Previously, it was convenient to check out the repo and try reproducing grpc problems from the source code, but now I need to copy files to do the same. What steps are needed to get the missing I figured out from the task file that I needed to run task protoc
task: [protoc:check] buf lint
task: [protoc:format] buf format --write --exit-code
task: [protoc:breaking-change-detection] buf breaking --against '.git#branch=origin/master,subdir=rpc'
task: [protoc:compile] buf dep update
task: [protoc:compile] buf generate task protoc:compile
task: [protoc:compile] buf dep update
task: [protoc:compile] buf generate Thank you! |
Hi @dankeboy36. I don't have an answer to your specific question, but I can offer an alternative solution, which is to switch from the excellent grpcurl to using Buf CLI, which is now the preferred tool for the Arduino CLI project. Buf CLI will take care of providing this missing dependency for you. Here is the equivalent command using Buf CLI:
|
# Assume you're in the `arduino-cli` folder
$ buf export . -o /tmp/test
$ tree /tmp/test
/tmp/test
├── cc
│ └── arduino
│ └── cli
│ └── commands
│ └── v1
│ ├── board.proto
│ ├── commands.proto
│ ├── common.proto
│ ├── compile.proto
│ ├── core.proto
│ ├── debug.proto
│ ├── lib.proto
│ ├── monitor.proto
│ ├── port.proto
│ ├── settings.proto
│ └── upload.proto
└── google
└── rpc
└── status.proto
8 directories, 12 files This will generate all the dependencies, and you can continue to use grpcurl if you wish 😄 |
Describe the problem
The
google/rpc/status.proto
has been removed from the 1.1.0 release, although it is used (for example,import "google/rpc/status.proto"
; incc/arduino/cli/commands/v1/commands.proto
), and downstream it breaks the proto to TS/JS generation. I believe the Arduino IDE will most likely also encounter this issue. I am about to release a new TS API for the CLI, and I am getting an error. It worked fine with the1.0.4
release: https://www.npmjs.com/package/ardunno-cli/v/0.1.9?activeTab=code.To reproduce
Use curl/wget or another way to download the 1.0.4 proto zip and the 1.1.0 version. Unpack them and see the
status.proto
is not packed with the zip.Escaped command to reproduce:
Error
Expected behavior
google/rpc/status.proto
is part of the release proto artifactArduino CLI version
1.1.0
Operating system
N/A
Operating system version
n/a
Additional context
No response
Issue checklist
The text was updated successfully, but these errors were encountered: