Skip to content

Commit 691aaeb

Browse files
Fix missing Sys. in detectwsl (#39)
1 parent 04421fe commit 691aaeb

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "PkgAuthentication"
22
uuid = "4722fa14-9d28-45f9-a1e2-a38605bd88f0"
33
authors = ["Sebastian Pfitzner", "contributors"]
4-
version = "2.1.0"
4+
version = "2.1.1"
55

66
[deps]
77
Downloads = "f43a241f-c20a-4ad4-852c-f6b1247861c6"

src/helpers.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ else
66
# https://github.com/JuliaLang/julia/pull/57069
77
function detectwsl()
88
# We use the same approach as canonical/snapd do to detect WSL
9-
islinux() && (
9+
Sys.islinux() && (
1010
isfile("/proc/sys/fs/binfmt_misc/WSLInterop")
1111
|| isdir("/run/WSL")
1212
)

test/utilities_test.jl

+2
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,6 @@
88
@test PkgAuthentication.assert_dict_keys(Dict("bar" => 0), "foo", "bar"; msg="") === nothing
99
@test_throws ErrorException PkgAuthentication.assert_dict_keys(Dict(), "foo", "bar"; msg="")
1010
@test_throws ErrorException PkgAuthentication.assert_dict_keys(Dict("baz" => 0), "foo", "bar"; msg="")
11+
12+
@test PkgAuthentication.detectwsl() isa Bool
1113
end

0 commit comments

Comments
 (0)