Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add max version for pygit2 #14

Merged
merged 1 commit into from Mar 13, 2020
Merged

Conversation

evanfwelch
Copy link

@evanfwelch evanfwelch commented Mar 12, 2020

Currently (12Mar2020), most Mac OS X users who do a brew install libgit2 will get version 0.28.x yet when they then do a pip install pygit2 they will get 1.1.x. As per the pygit2 docs, these are incompatible.

Now, this isn't a flaw with battenberg itself, because your docs clearly specify these two libraries as dependencies. But unless you specifically want people to build libgit 1.x from source and then install the corresponding pygit2 version, it may increase adoption and improve user experience to just put an upper bound on the pygit version to prevent 1.x from getting installed and then complaining about an old libgit:

src/types.h:36:2: error: You need a compatible libgit2 version (0.99.x or 1.0.x)
  #error You need a compatible libgit2 version (0.99.x or 1.0.x)

Currently (12Mar2020), most Mac OS X users who do a `brew install libgit2` will get version `0.28.x` yet when they then do a `pip install pygit2` they will get `1.1.x`. As per the `pygit2` [docs](https://www.pygit2.org/install.html#version-numbers), these are incompatible.

Now, this isn't a flaw with battenberg itself, but unless you specifically want people to build `libgit 1.x` and then install the corresponding version, it may increase adoption and improve user experience to just put an upper bound on the pygit version to prevent 1.x from getting installed and then complaining about an old libgit:

```
src/types.h:36:2: error: You need a compatible libgit2 version (0.99.x or 1.0.x)
  #error You need a compatible libgit2 version (0.99.x or 1.0.x)
```
@evanfwelch
Copy link
Author

i don't have write access so merge as you like! (no urgent need from me at the moment). Thanks alex.

@alexlatchford alexlatchford merged commit b21cd48 into zillow:master Mar 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants