You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@info"Using the following folder as the cache folder: " cache_folder
75
75
@@ -92,7 +92,7 @@ asyncmap(julia_versions) do v
92
92
print(f, res.stderr)
93
93
end
94
94
95
-
if res.code!=0
95
+
if res.code!=0
96
96
error("Could not create docker image.")
97
97
end
98
98
end
@@ -108,10 +108,10 @@ true || asyncmap(julia_versions) do v
108
108
else
109
109
res =execute(`docker run --rm --mount type=bind,source="$cache_folder",target=/symcache juliavscodesymbolindexer:$v julia SymbolServer/src/indexbasestdlib.jl $v`)
110
110
111
-
if res.code==10|| res.code==20
112
-
if res.code==10
111
+
if res.code==10|| res.code==20
112
+
if res.code==10
113
113
# global count_failed_to_load += 1
114
-
elseif res.code==20
114
+
elseif res.code==20
115
115
# global count_failed_to_install += 1
116
116
end
117
117
@@ -121,7 +121,7 @@ true || asyncmap(julia_versions) do v
121
121
# # Write them to a file
122
122
# open(joinpath(path, error_filename), "w") do io
123
123
# end
124
-
124
+
125
125
# Pkg.PlatformEngines.package(path, cache_path)
126
126
# end
127
127
@@ -136,7 +136,7 @@ true || asyncmap(julia_versions) do v
@@ -188,12 +188,12 @@ asyncmap(unindexed_packageversions, ntasks=max_tasks) do v
188
188
mktempdir() do path
189
189
res =execute(`docker run --rm --mount type=bind,source="$path",target=/symcache juliavscodesymbolindexer:$(first(julia_versions)) julia SymbolServer/src/indexpackage.jl $(v.name)$(v.version)$(v.uuid)$(v.treehash)`)
190
190
191
-
if res.code==37# This is our magic error code that indicates everything worked
191
+
if res.code==37# This is our magic error code that indicates everything worked
192
192
global count_successfully_cached +=1
193
193
else
194
-
if res.code==10
194
+
if res.code==10
195
195
global count_failed_to_load +=1
196
-
elseif res.code==20
196
+
elseif res.code==20
197
197
global count_failed_to_install +=1
198
198
else
199
199
global count_failed_to_index +=1
@@ -209,20 +209,20 @@ asyncmap(unindexed_packageversions, ntasks=max_tasks) do v
open(joinpath(cache_folder, "logs", res.code==10?"packageloadfailure": res.code==20?"packageinstallfailure":"packageindexfailure", "log_$(v.name)_v$(versionwithoutplus)_stdout.txt"), "w") do f
215
+
open(joinpath(cache_folder, "logs", res.code==10?"packageloadfailure": res.code==20?"packageinstallfailure":"packageindexfailure", "log_$(v.name)_v$(versionwithoutplus)_stdout.txt"), "w") do f
216
216
print(f, res.stdout)
217
217
end
218
218
219
-
open(joinpath(cache_folder, "logs", res.code==10?"packageloadfailure": res.code==20?"packageinstallfailure":"packageindexfailure", "log_$(v.name)_v$(versionwithoutplus)_stderr.txt"), "w") do f
219
+
open(joinpath(cache_folder, "logs", res.code==10?"packageloadfailure": res.code==20?"packageinstallfailure":"packageindexfailure", "log_$(v.name)_v$(versionwithoutplus)_stderr.txt"), "w") do f
Tries to load the on-disc stored cache for a package (uuid). Attempts to generate (and save to disc) a new cache if the file does not exist or is unopenable.
0 commit comments