guix_mirror_bot pushed a commit to branch rust-team
in repository guix.

commit 81055ba273bc8e899018cd94df2bea1ec0610ce7
Author: Olivia Lee <[email protected]>
AuthorDate: Wed Oct 21 20:39:08 2026 -0700

    build/cargo: Handle non-tarball file inputs correctly.
    
    * guix/build/cargo-build-system.scm (crate-src?): Don't try to untar
      file inputs unless they are tarballs. The old check special-cased
      python here, but broke on all other non-tarball files.
---
 guix/build/cargo-build-system.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/guix/build/cargo-build-system.scm 
b/guix/build/cargo-build-system.scm
index 17efc7f0448..cb0647bdf31 100644
--- a/guix/build/cargo-build-system.scm
+++ b/guix/build/cargo-build-system.scm
@@ -87,7 +87,7 @@ Cargo.toml file present at its root."
            ;; Workspaces should be packaged into crates (via 'package phase)
            ;; and used in inputs.
            (cargo-package? path)
-           (and (not (string-suffix? "py" path)) ;sanity-check.py
+           (and (tarball? path)
                 ;; First we print out all file names within the tarball to see
                 ;; if it looks like the source of a crate. However, the tarball
                 ;; will include an extra path component which we would like to

Reply via email to