Skip to content

Commit 5da74be

Browse files
corakingdonStefanKarpinski
authored andcommitted
Fix calls to realpath for shared network drives (#34132)
* Add try/catch around call to realpath in dummy_uuid
1 parent 8707744 commit 5da74be

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

base/loading.jl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,14 @@ end
117117

118118
const ns_dummy_uuid = UUID("fe0723d6-3a44-4c41-8065-ee0f42c8ceab")
119119

120-
dummy_uuid(project_file::String) = uuid5(ns_dummy_uuid, realpath(project_file))
120+
function dummy_uuid(project_file::String)
121+
project_path = try
122+
realpath(project_file)
123+
catch
124+
project_file
125+
end
126+
return uuid5(ns_dummy_uuid, project_path)
127+
end
121128

122129
## package path slugs: turning UUID + SHA1 into a pair of 4-byte "slugs" ##
123130

0 commit comments

Comments
 (0)