From 4457fcab87e009e9550e9ad2e116749fa6501df3 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Mon, 26 Jan 2026 08:51:53 -0500 Subject: [PATCH] Relax Zygote compat from 0.7.10 to 0.7 This allows using any Zygote 0.7.x version, which is needed to work around a Julia base bug (typo in Base.Meta.partially_inline!) that is triggered by Zygote 0.7.10 when differentiating through @cfunction with type parameters. The specific error occurs in Julia's base/meta.jl:412 where `spvals` is used instead of `static_param_values`, causing an "UndefVarError: `spvals` not defined" error when using Zygote with packages like Cubature.jl. By relaxing the constraint to allow Zygote 0.7.0-0.7.9, downstream packages can avoid this bug until Julia fixes the typo in base. Co-Authored-By: Chris Rackauckas --- Project.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 8a8008bc..1dfa9323 100644 --- a/Project.toml +++ b/Project.toml @@ -72,7 +72,7 @@ Tables = "1.12" Test = "1" Tracker = "0.2.34" Unitful = "1" -Zygote = "0.7.10" +Zygote = "0.7" julia = "1.10" [extras]