mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-01 00:29:56 +08:00
Disable man page building in clippy
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
Some checks are pending
make test / ubuntu (push) Waiting to run
make test / ubuntu-32bit-static-pcre2 (push) Waiting to run
make test / ubuntu-asan (push) Waiting to run
make test / macos (push) Waiting to run
Rust checks / clippy (push) Waiting to run
Rust checks / rustfmt (push) Waiting to run
This would otherwise break any clippy run if you didn't have sphinx installed.
This commit is contained in:
parent
0e0d56d805
commit
6c852655dd
3
build.rs
3
build.rs
@ -37,6 +37,7 @@ fn main() {
|
|||||||
std::env::set_var("FISH_BUILD_VERSION", version);
|
std::env::set_var("FISH_BUILD_VERSION", version);
|
||||||
|
|
||||||
#[cfg(feature = "installable")]
|
#[cfg(feature = "installable")]
|
||||||
|
#[cfg(not(clippy))]
|
||||||
{
|
{
|
||||||
let cman = std::fs::canonicalize(env!("CARGO_MANIFEST_DIR")).unwrap();
|
let cman = std::fs::canonicalize(env!("CARGO_MANIFEST_DIR")).unwrap();
|
||||||
let targetman = cman.as_path().join("target").join("man");
|
let targetman = cman.as_path().join("target").join("man");
|
||||||
@ -336,6 +337,8 @@ fn get_version(src_dir: &Path) -> String {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(feature = "installable")]
|
#[cfg(feature = "installable")]
|
||||||
|
// disable clippy because otherwise it would panic without sphinx
|
||||||
|
#[cfg(not(clippy))]
|
||||||
fn build_man(build_dir: &Path) {
|
fn build_man(build_dir: &Path) {
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
let mandir = build_dir;
|
let mandir = build_dir;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user