Skip to content

Commit e84e615

Browse files
PatrickHaeckerPatrick Häcker
authored andcommitted
Avoid error on rebuild with JuliaC
Force copy of cert.pem in bundle_cert function. Setting `force=true` avoids aborting JuliaC with an error when building a second time. It should be save to overwrite the cert file, as it has been copied by PackageCompiler.jl and the user requested to regenerate the app.
1 parent c2a75b0 commit e84e615

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/PackageCompiler.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1776,7 +1776,7 @@ function bundle_cert(dest_dir)
17761776
cert_path = joinpath(Sys.BINDIR, "..", "share", "julia", "cert.pem")
17771777
share_path = joinpath(dest_dir, "share", "julia")
17781778
mkpath(share_path)
1779-
cp(cert_path, joinpath(share_path, "cert.pem"))
1779+
cp(cert_path, joinpath(share_path, "cert.pem"), force=true)
17801780
end
17811781

17821782
# Write preferences for packages in project `project_dir` to `io`

0 commit comments

Comments
 (0)