Lints and suggestions for the Nix programming language
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #33 from nerdypepper/fix/nix-presence

fix: nix binary should not be mandatory

authored by

Akshay and committed by
GitHub
7cc88780 23892b03

+3 -6
+1 -1
Cargo.lock
··· 507 507 508 508 [[package]] 509 509 name = "statix" 510 - version = "0.5.0" 510 + version = "0.5.1" 511 511 dependencies = [ 512 512 "ariadne", 513 513 "clap",
+1 -1
bin/Cargo.toml
··· 1 1 [package] 2 2 name = "statix" 3 - version = "0.5.0" 3 + version = "0.5.1" 4 4 edition = "2018" 5 5 license = "MIT" 6 6 authors = [ "Akshay <nerdy@peppe.rs>" ]
+1 -4
bin/src/utils.rs
··· 25 25 26 26 pub fn get_version_info() -> Option<String> { 27 27 use std::process::Command; 28 - let program = Command::new("nix") 29 - .arg("--version") 30 - .output() 31 - .expect("failed to execute"); 28 + let program = Command::new("nix").arg("--version").output().ok()?; 32 29 std::str::from_utf8(&program.stdout) 33 30 .ok()? 34 31 .split(' ')