Skip to content

Commit

Permalink
Fix system image incompatibility with LibCURL.cacert (#84)
Browse files Browse the repository at this point in the history
* Fix LibCURL.cacert when used in a sysimage
* Set project version to 0.6.1

Co-authored-by: Nicole Epp <[email protected]>
  • Loading branch information
omus and nicoleepp authored Jun 24, 2020
1 parent 87ca1d1 commit d018fe7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "LibCURL"
uuid = "b27032c2-a3e7-50c8-80cd-2d36dbcbfd21"
version = "0.6.0"
version = "0.6.1"

[deps]
LibCURL_jll = "deac9b47-8bc7-5906-a0fe-35ac56dc84c0"
Expand Down
9 changes: 8 additions & 1 deletion src/LibCURL.jl
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,17 @@ const curl_off_t = Int64
const fd_set = Union{}
const socklen_t = Int32

const cacert = MozillaCACerts_jll.cacert
cacert = ""

export Mime_ext

function __init__()
# Note: `MozillaCACerts_jll.cacert` is filled by `__init__` which requires LibCURL's
# copy to also be filled in during initialization. Doing this ensures compatibility
# with building system images.
global cacert = MozillaCACerts_jll.cacert
end

include("lC_exports_h.jl")
include("lC_common_h.jl")
include("lC_curl_h.jl")
Expand Down

2 comments on commit d018fe7

@omus
Copy link
Collaborator Author

@omus omus commented on d018fe7 Jun 24, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/16884

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.6.1 -m "<description of version>" d018fe70928510b552600473e136de5d9bbe65b3
git push origin v0.6.1

Please sign in to comment.