git2go should ensure -DGIT_THREADS was used for libgit2 #329
Labels
No Label
bug
duplicate
enhancement
invalid
question
up for grabs
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: jcarr/git2go#329
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
It's apparently possible to link libgit2 into a git2go binary, with thread-safety switched off. For git2go this does not make any sense; git2go should crash if libgit2 wasn't compiled with -DGIT_THREADS.
You would have to choose to build your shared libgit2 without threading support, which would already indicate your choice not to run anything with threads, so I'm not sure how that happens accidentally with anything more-or-less recently.
But yes, that doesn't make a lot of sense with Go. It probably make sense to check for the threading capability and error out (maybe the only option is panic?) if we link against a version without it.
Fixed via #354