Skip to content

Commit 9db5309

Browse files
Crghilardigiordano
andauthored
add installed_shards() function to output downloaded artifacts on system (#171)
* add install_shards() function to output downloaded artifacts on system * condense broadcasts into a single operation Co-authored-by: Mosè Giordano <[email protected]> Co-authored-by: Mosè Giordano <[email protected]>
1 parent ca37224 commit 9db5309

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Rootfs.jl

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -978,3 +978,13 @@ function unmount_shards(ur::Runner; verbose::Bool = false)
978978
catch
979979
end
980980
end
981+
982+
"""
983+
installed_shards()
984+
Return a vector of compiler shards currently downloaded on the local system
985+
"""
986+
function installed_shards()
987+
idx = artifact_exists.(shard_source_artifact_hash.(all_compiler_shards()))
988+
989+
return all_compiler_shards()[idx]
990+
end

0 commit comments

Comments
 (0)