Skip to content

Commit 59b8871

Browse files
authored
build: prevent gen_proto.sh from hanging (#736)
According to the [npx docs](https://docs.npmjs.com/cli/v8/commands/npx): > If any requested packages are not present in the local project dependencies, then they are installed to a folder in the npm cache, which is added to the PATH environment variable in the executed process. A prompt is printed (which can be suppressed by providing either --yes or --no). Running it in non-interactive manner hangs build process and waits for keyboard input. See #706 for potential long-term solution. Was originally added in #696.
1 parent 22e7a7e commit 59b8871

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/gen_proto.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
# Run buf generate to regenerate protobuf code and OpenAPI spec
5-
npx @bufbuild/buf generate
5+
npx --yes @bufbuild/buf generate
66

77
# The OpenAPI generator produces a file named like 'a2a.swagger.json' or similar.
88
# We need it to be 'a2a.json' for the A2A SDK.

0 commit comments

Comments
 (0)