1
0
mirror of https://github.com/Llewellynvdm/starship.git synced 2024-12-25 11:20:01 +00:00

build: bump nix from 0.23.1 to 0.24.1 (#3925)

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
David Knaack 2022-04-26 15:14:51 +02:00 committed by GitHub
parent 5174c9a067
commit d4d84a592c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 21 additions and 5 deletions

17
Cargo.lock generated
View File

@ -1055,6 +1055,17 @@ dependencies = [
"memoffset",
]
[[package]]
name = "nix"
version = "0.24.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8f17df307904acd05aa8e32e97bb20f2a0df1728bbc2d771ae8f9a90463441e9"
dependencies = [
"bitflags",
"cfg-if 1.0.0",
"libc",
]
[[package]]
name = "nom"
version = "5.1.2"
@ -1914,7 +1925,7 @@ dependencies = [
"local_ipaddress",
"log",
"mockall",
"nix",
"nix 0.24.1",
"notify-rust",
"once_cell",
"open",
@ -1963,7 +1974,7 @@ dependencies = [
"lazycell",
"libc",
"mach",
"nix",
"nix 0.23.1",
"num-traits",
"uom",
"winapi",
@ -2546,7 +2557,7 @@ dependencies = [
"futures-util",
"hex",
"lazy_static",
"nix",
"nix 0.23.1",
"once_cell",
"ordered-stream",
"rand 0.8.5",

View File

@ -105,7 +105,7 @@ features = [
]
[target.'cfg(not(windows))'.dependencies]
nix = "0.23.1"
nix = { version = "0.24.1", default-features = false, features = ["feature", "fs", "user"] }
[build-dependencies]
shadow-rs = "0.11.0"

View File

@ -372,7 +372,12 @@ fn git_status_wsl(context: &Context, conf: &GitStatusConfig) -> Option<String> {
// Ensure this is WSL
// This is lowercase in WSL1 and uppercase in WSL2, just skip the first letter
if !uname().release().contains("icrosoft") {
if !uname()
.ok()?
.release()
.to_string_lossy()
.contains("icrosoft")
{
return None;
}