ms-jpq / sad

CLI search and replace | Space Age seD
MIT License
1.71k stars 22 forks source link

0.4.23: Build fails with NotFound, message: "No such file or directory" #241

Open yurivict opened 1 year ago

yurivict commented 1 year ago
     Running `/usr/ports/textproc/sad/work/target/release/build/sad-d56d8c2582aab3f5/build-script-build`
[sad 0.4.23] Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
error: failed to run custom build command for `sad v0.4.23 (/usr/ports/textproc/sad/work/sad-0.4.23)`

Caused by:
  process didn't exit successfully: `/usr/ports/textproc/sad/work/target/release/build/sad-d56d8c2582aab3f5/build-script-build` (exit status: 1)
  --- stderr
  Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
warning: build failed, waiting for other jobs to finish...
warning: variable does not need to be mutable
   --> /usr/ports/textproc/sad/work/sad-0.4.23/cargo-crates/which-4.4.0/src/lib.rs:308:18
    |
308 |     pub fn regex(mut self, regex: Regex) -> Self {
    |                  ----^^^^
    |                  |
    |                  help: remove this `mut`
    |
    = note: `#[warn(unused_mut)]` on by default

warning: `which` (lib) generated 1 warning
*** Error code 101

rust-1.69.0 FreeBSD 13.2

yurivict commented 1 year ago

The "python3" executable was missing. The error log says nothing about the real reason of this failure.

chenrui333 commented 1 year ago

Seeing the same in homebrew build as well, https://github.com/Homebrew/homebrew-core/pull/133223