You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
parallel/test-temporal-with-zoneinfo fails on Linux s390x #61808
diff --git a/deps/crates/Cargo.toml b/deps/crates/Cargo.toml
index ee208c16db1..aa3df8b3ef0 100644
--- a/deps/crates/Cargo.toml+++ b/deps/crates/Cargo.toml@@ -30,3 +30,6 @@ version = "=0.1.0"
default-features = false
# This is necessary to enable a spec-compliance quirk when upgrading to v0.1.2
# features = ["float64_representable_durations"]
++[patch.crates-io]+resb = { git="https://github.com/unicode-org/icu4x.git", rev="d310df8b3fb1cbfc551682ccf80f378ed152da8e" }
# cargo vendorerror: failed to syncCaused by: found duplicate version of package `potential_utf v0.1.4` vendored from two sources: source 1: registry `crates-io` source 2: https://github.com/unicode-org/icu4x.git?rev=d310df8b3fb1cbfc551682ccf80f378ed152da8e#d310df8b
#
17:13:53 error: the listed checksum of `/home/iojs/build/workspace/node-test-commit-linuxone/deps/crates/vendor/resb/src/binary.rs` has changed:17:13:53 expected: 414b60bd9f2570c522b040cd87964c82329fa7e46cef470066d8723d66011df117:13:53 actual: e75277dca8931a0c7c93525bb5b88867cc0644c1af78fdf058591ce56cbabffd17:13:53 17:13:53 directory sources are not intended to be edited, if modifications are required then it is recommended that `[patch]` is used with a forked copy of the source
Create a copy of the crate (under deps/crates/patches) and apply the changes to the copy.
Add to Cargo.toml a patch override pointing to the modified copy.
diff --git a/deps/crates/Cargo.toml b/deps/crates/Cargo.toml
index ee208c16db1..033c6f26939 100644
--- a/deps/crates/Cargo.toml+++ b/deps/crates/Cargo.toml@@ -30,3 +30,6 @@ version = "=0.1.0"
default-features = false
# This is necessary to enable a spec-compliance quirk when upgrading to v0.1.2
# features = ["float64_representable_durations"]
++[patch.crates-io]+resb = { path="patches/resb" }
Rerun cargo vendor. This has updated Cargo.lock and also deleted the vendored resb crate from the source tree (presumably because the build will now use the local copy pointed to by the Cargo.toml changes). Because the added files and deleted files are similar, git treats them as being moved.
Hm, I think the patch in #61808 (comment) will try to bring in dependency of resb from the patched git repo, as rust-lang/cargo#10310. A local patch of the single resb could be a simpler change.
Activity
miladfarca commentedon Feb 16, 2026
Initiated a fix for V8:
unicode-org/icu4x#7658
https://chromium-review.googlesource.com/c/chromium/src/+/7583895
Add a patch file to fix zoneinfo64 parsing on big endian platforms
richardlau commentedon Mar 6, 2026
hmm. Still trying to figure out the best way to float unicode-org/icu4x#7658.
https://doc.rust-lang.org/cargo/reference/overriding-dependencies.html suggests we should be able to do
but that ends up with version conflicts (probably because https://github.com/unicode-org/icu4x.git contains several crates):
richardlau commentedon Mar 6, 2026
I tried to directly patch
deps/crates/vendor/resbbutcargoerrors during build:https://ci.nodejs.org/job/node-test-commit-linuxone/53962/nodes=rhel8-s390x/console
richardlau commentedon Mar 6, 2026
Add a patch file to fix zoneinfo64 parsing on big endian platforms
richardlau commentedon Mar 6, 2026
Okay, tried a different way:
deps/crates/patches) and apply the changes to the copy.Cargo.tomla patch override pointing to the modified copy.cargo vendor. This has updatedCargo.lockand also deleted the vendoredresbcrate from the source tree (presumably because the build will now use the local copy pointed to by theCargo.tomlchanges). Because the added files and deleted files are similar, git treats them as being moved.Opened PR with the above: #62138
legendecas commentedon Mar 6, 2026
Hm, I think the patch in #61808 (comment) will try to bring in dependency of
resbfrom the patched git repo, as rust-lang/cargo#10310. A local patch of the singleresbcould be a simpler change.richardlau commentedon Mar 6, 2026
Yes, it seems that because https://github.com/unicode-org/icu4x.git contains more than one crate, attempting to patch one of them adds https://github.com/unicode-org/icu4x.git as a source for all of the crates in the repository (and not just the one we want to patch).
deps: patch resb crate
deps: patch resb crate
deps: patch resb crate