src/indexpackage.jl
changed.
Showing 1 of 1 files from the diff.
@@ -15,7 +15,10 @@
Loading
15 | 15 | ||
16 | 16 | current_package_versionwithoutplus = replace(string(current_package_version), '+'=>'_') |
|
17 | 17 | cache_package_folder_path = joinpath(store_path, "v1", "packages", "$(current_package_name)_$current_package_uuid") |
|
18 | - | cache_path = joinpath(cache_package_folder_path, "v$(current_package_versionwithoutplus)_$current_package_treehash.jstore") |
|
18 | + | filename_without_extension = "v$(current_package_versionwithoutplus)_$current_package_treehash" |
|
19 | + | filename_with_extension = "$filename_without_extension.jstore" |
|
20 | + | cache_path = joinpath(cache_package_folder_path, filename_with_extension) |
|
21 | + | cache_path_compressed = joinpath(cache_package_folder_path, "$filename_without_extension.tar.gz") |
|
19 | 22 | ||
20 | 23 | mkpath(cache_package_folder_path) |
|
21 | 24 |
@@ -47,9 +50,16 @@
Loading
47 | 50 | ||
48 | 51 | # There's an issue here - @enum used within CSTParser seems to add a method that is introduced from Enums.jl... |
|
49 | 52 | ||
50 | - | # Write them to a file |
|
51 | - | open(cache_path, "w") do io |
|
52 | - | CacheStore.write(io, Package(string(current_package_name), env[current_package_name], current_package_uuid, nothing)) |
|
53 | + | Pkg.PlatformEngines.probe_platform_engines!() |
|
54 | + | ||
55 | + | mktempdir() do path |
|
56 | + | # Write them to a file |
|
57 | + | open(joinpath(path, filename_with_extension), "w") do io |
|
58 | + | CacheStore.write(io, Package(string(current_package_name), env[current_package_name], current_package_uuid, nothing)) |
|
59 | + | end |
|
60 | + | ||
61 | + | cp(joinpath(path, filename_with_extension), cache_path) |
|
62 | + | Pkg.PlatformEngines.package(path, cache_path_compressed) |
|
53 | 63 | end |
|
54 | 64 | ||
55 | 65 | @info "Finished indexing." |
Files | Coverage |
---|---|
src | 71.09% |
Project Totals (7 files) | 71.09% |
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.