libgit2 / git2go

Git to Go; bindings for libgit2. Like McDonald's but tastier.
MIT License
1.93k stars 316 forks source link

error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0" #839

Closed yermulnik closed 3 years ago

yermulnik commented 3 years ago

I'm trying to build/install another project which depends on git2go: https://github.com/askgitdev/askgit/issues/197 And it looks like latest git2go doesn't support latest libgit2:

[…]
# github.com/libgit2/git2go/v32
/home/giermulnik/.cache/Homebrew/go_mod_cache/pkg/mod/github.com/libgit2/git2go/v32@v32.0.4/Build_system_dynamic.go:12:3: error: #error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0"
   12 | # error "Invalid libgit2 version; this git2go supports libgit2 between v1.2.0 and v1.2.0"
      |   ^~~~~

[…]

Any clue on how do I overcome/fix this issue? Thanks

lhchavez commented 3 years ago

dupe of https://github.com/libgit2/git2go/issues/834

edit: that's not true!

lhchavez commented 3 years ago

oh i completely missed the 1.3.0 release :man_facepalming: . we'll create a new release soon.

yermulnik commented 3 years ago

@lhchavez Thanks!

lhchavez commented 3 years ago

https://github.com/libgit2/git2go/pull/840 and https://pkg.go.dev/github.com/libgit2/git2go/v33 :tada: