Skip to content

Commit d5a8367

Browse files
authored
Merge pull request #37846 from JuliaLang/sk/no-symlink-no-warn
symlink: don't warn on Windows symlink failure (fix #37845)
2 parents 7330822 + 75732a4 commit d5a8367

File tree

6 files changed

+6
-5
lines changed

6 files changed

+6
-5
lines changed

base/file.jl

+3-2
Original file line numberDiff line numberDiff line change
@@ -977,12 +977,13 @@ function symlink(p::AbstractString, np::AbstractString)
977977
end
978978
end
979979
err = ccall(:jl_fs_symlink, Int32, (Cstring, Cstring, Cint), p, np, flags)
980+
sym = "symlink"
980981
@static if Sys.iswindows()
981982
if err < 0 && !isdir(p)
982-
@warn "On Windows, creating file symlinks requires Administrator privileges" maxlog=1 _group=:file
983+
sym = "On Windows, creating symlinks requires Administrator privileges.\nsymlink"
983984
end
984985
end
985-
uv_error("symlink",err)
986+
uv_error(sym, err)
986987
end
987988

988989
"""

deps/checksums/Pkg-9818e430f7ced5fb82b9d4b1fc61b0727ac5901e.tar.gz/md5

-1
This file was deleted.

deps/checksums/Pkg-9818e430f7ced5fb82b9d4b1fc61b0727ac5901e.tar.gz/sha512

-1
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
f663506474dead4a50600ce3cdda1de4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
5c35c671f642f155b065ff21ca998182a7624d41f469248a741b52684e288590b0e481be25757203c74d90005acbd1cb4be1587d08c6945e7517a01c829291e1

stdlib/Pkg.version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
PKG_BRANCH = master
2-
PKG_SHA1 = 9818e430f7ced5fb82b9d4b1fc61b0727ac5901e
2+
PKG_SHA1 = ce1566b46bc33eebde5deae9c213047162f5b489

0 commit comments

Comments
 (0)