Skip to content

Recent package upgrades are breaking 1.2.7 builds #418

@jscheid

Description

@jscheid

It seems that a few hours ago, a number of new package versions were released that are picked up by plrust builds but fail because they're incompatible with older rust versions. I could be missing some details here but anyway, this is a temporary workaround in case anybody finds it useful:

diff --color -ru ../plrust-1.2.7/plrust/Cargo.toml ./plrust/Cargo.toml
--- ../plrust-1.2.7/plrust/Cargo.toml	2023-11-18 17:44:58.000000000 +0100
+++ ./plrust/Cargo.toml	2025-02-26 23:28:45.770122468 +0100
@@ -62,6 +62,10 @@
 proc-macro2 = "1"
 omnipath = "0.1.6"
 
+# overrides
+litemap = { version = "=0.7.4", forced = true }
+zerofrom = { version = "=0.1.5", forced = true }
+
 [target.'cfg(target_os="linux")'.dependencies]
 memfd = "0.6.4" # for anonymously writing/loading user function .so
 
diff --color -ru ../plrust-1.2.7/plrust/src/user_crate/crating.rs ./plrust/src/user_crate/crating.rs
--- ../plrust-1.2.7/plrust/src/user_crate/crating.rs	2023-11-18 17:44:58.000000000 +0100
+++ ./plrust/src/user_crate/crating.rs	2025-02-26 23:22:29.514979073 +0100
@@ -250,6 +250,9 @@
 
         [dependencies]
         pgrx = { version = trusted_pgrx_version, package = "plrust-trusted-pgrx" }
+        home = { version = "=0.5.9", forced = true }
+        litemap = { version = "=0.7.4", forced = true }
+        zerofrom = { version = "=0.1.5", forced = true }
 
         /* User deps added here */
 

Is there's any less hacky solution, and is my understanding correct that 1.2.7 requires Rust 1.72.0, which is incompatible with the latest versions of these packages?

Could these and other dependencies be nailed down more inCargo.toml and the template? It would be good to know that some other package being upgraded next week won't cause similar issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions