-
Hello! I am running into test failures like the following when updating to 12.1.1 from 11.x.
This is for packaging in gnu guix, and the package definition looks like the following: (define-public ripgrep
(package
(name "ripgrep")
(version "12.1.1")
(source
(origin
(method url-fetch)
(uri (crate-uri "ripgrep" version))
(file-name
(string-append name "-" version ".tar.gz"))
(sha256
(base32
"1grfi0j9zczzipipc21lkdbqmd2lvy2wlqy65fy4sckqvix5amdr"))))
(build-system cargo-build-system)
(arguments
`(#:cargo-inputs
(("rust-bstr" ,rust-bstr-0.2)
("rust-clap" ,rust-clap-2)
("rust-grep" ,rust-grep-0.2)
("rust-ignore" ,rust-ignore-0.4)
("rust-jemallocator" ,rust-jemallocator-0.3)
("rust-lazy-static" ,rust-lazy-static-1)
("rust-log" ,rust-log-0.4)
("rust-num-cpus" ,rust-num-cpus-1)
("rust-regex" ,rust-regex-1)
("rust-serde-json" ,rust-serde-json-1)
("rust-termcolor" ,rust-termcolor-1))
#:cargo-development-inputs
(("rust-serde" ,rust-serde-1)
("rust-serde-derive" ,rust-serde-derive-1))
#:modules ((ice-9 match)
(guix build cargo-build-system)
(guix build utils))
#:phases
(modify-phases %standard-phases
(add-after 'build 'install-manpage
;; NOTE: This is done before 'check so that there's only one output
;; directory with the man page.
(lambda* (#:key outputs #:allow-other-keys)
(match (find-files "target" "^rg\\.1$")
((manpage)
(install-file manpage (string-append
(assoc-ref outputs "out")
"/share/man/man1"))))
#t)))
#:features '("pcre2")))
(native-inputs
`(("asciidoc" ,asciidoc)
("pcre2" ,pcre2)
("pkg-config" ,pkg-config)))
(home-page "https://github.com/BurntSushi/ripgrep")
(synopsis "Line-oriented search tool")
(description
"ripgrep is a line-oriented search tool that recursively searches
your current directory for a regex pattern while respecting your
gitignore rules.")
(license (list license:unlicense license:expat)))) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
This isn't failing on master or the 12.1.1 tag right? The guix package stuff is greek to me. Please provide the exact commands you're using (starting from how you get the source) that reproduces the failures. My guess is that your |
Beta Was this translation helpful? Give feedback.
-
I figured as much. Apologies for the noise.
The Cargo.lock is definitely the primary suspect since we re-vendor most crates from the system defined ones. What crate should I be looking at most likely? Here are the build log and the environment variables for the build. The test command is Most likely it is a crate mismatch I think. |
Beta Was this translation helpful? Give feedback.
I figured as much. Apologies for the noise.
The Cargo.lock is definitely the primary suspect since we re-vendor most crates from the system defined ones. What crate should I be looking at most likely? Here are the build log and the environment variables for the build.
build.log
build-env-vars.log
The test command is
cargo test --release
the build command iscargo build --release
.Most likely it is a crate mismatch I think.