Skip to content

Commit 56d60da

Browse files
Fix missing Sys. in detectwsl
1 parent 04421fe commit 56d60da

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/helpers.jl

Lines changed: 1 addition & 1 deletion
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

Lines changed: 2 additions & 0 deletions
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)