Skip to content

Commit 6ea29a9

Browse files
nemo-relay: Add version 0.9.3 (#2481)
* nemo-relay: Add version 0.9.3 Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> * nemo-relay: carry forward riscv64 patch(es) to 0.9.3 The nightly-upgrade bot bumped docs/packages/nemo-relay.yaml to 0.9.3 without creating a matching patches/nemo-relay/0.9.3/ directory, so the workflow's unconditional 'git apply .../*.patch' step failed with no matching file. Carrying forward the same patch(es) from 0.9.2/ unchanged; CI will confirm they still apply cleanly against the new upstream version. --------- Signed-off-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> Co-authored-by: riseproject-dev[bot] <330740410+riseproject-dev[bot]@users.noreply.github.com> Co-authored-by: Ludovic Henry <git@ludovic.dev>
1 parent e6042f1 commit 6ea29a9

2 files changed

Lines changed: 40 additions & 0 deletions

File tree

‎docs/packages/nemo-relay.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,4 @@ versions:
3030
- filename: nemo_relay-0.9.2-cp311-abi3-manylinux_2_39_riscv64.whl
3131
sha256: 1bf0cde243c7835d9a5d1a5bdb4668a810fa80885e392cf5e7d2cefd7ef69990
3232
requires-python: '>=3.11'
33+
- version: 0.9.3
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From 7d7539c7e835dd8fd9cabd470748296a7a8bad72 Mon Sep 17 00:00:00 2001
2+
From: Ludovic Henry <git@ludovic.dev>
3+
Date: Sun, 6 Sep 2026 09:43:30 +0200
4+
Subject: [PATCH] worker-proto: fall back to prost-build's own protoc lookup on
5+
riscv64
6+
7+
Upstream-Status: Inappropriate [protoc-bin-vendored ships no riscv64 binary; prost_build::Config::new() already defaults protoc_executable to its own PROTOC-env/PATH lookup, so simply not overriding it on unsupported platforms is the whole fix]
8+
9+
protoc_bin_vendored::protoc_bin_path() returns Err on any platform outside
10+
its small enum of prebuilt targets (x86, x86_64, aarch64, ppc64le, s390x,
11+
macOS, Windows), which the crate's build.rs propagated with ?, aborting
12+
the build before prost_build ever got a chance to look for a protoc on
13+
PATH or via $PROTOC. Only calling protoc_executable() when the vendored
14+
lookup succeeds restores that fallback, which is documented in
15+
prost-build's own "Sourcing protoc" section.
16+
17+
Signed-off-by: Ludovic Henry <git@ludovic.dev>
18+
---
19+
crates/worker-proto/build.rs | 7 ++++++-
20+
1 file changed, 6 insertions(+), 1 deletion(-)
21+
22+
diff --git a/crates/worker-proto/build.rs b/crates/worker-proto/build.rs
23+
index 5fddbc74..888ec366 100644
24+
--- a/crates/worker-proto/build.rs
25+
+++ b/crates/worker-proto/build.rs
26+
@@ -7,7 +7,12 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {
27+
let proto = "proto/nemo/relay/worker/v1/plugin_worker.proto";
28+
let include = "proto";
29+
let mut prost = prost_build::Config::new();
30+
- prost.protoc_executable(protoc_bin_vendored::protoc_bin_path()?);
31+
+ // protoc-bin-vendored ships no riscv64 binary; falling through leaves
32+
+ // prost_build's own PROTOC-env/PATH lookup in charge, which resolves to
33+
+ // the system protoc installed alongside this crate's build on that arch.
34+
+ if let Ok(protoc) = protoc_bin_vendored::protoc_bin_path() {
35+
+ prost.protoc_executable(protoc);
36+
+ }
37+
38+
tonic_prost_build::configure().compile_with_config(prost, &[proto], &[include])?;
39+
Ok(())

0 commit comments

Comments
 (0)